WaratekVRT Sign in

CVE-2022-25845 alibaba fastjson

Affected softwarealibaba fastjson
Severity9.8 Critical CVSS 3.1 3 scores
Fixed in1.2.83
WeaknessDeserialization of untrusted data (CWE-502)
Published10 Jun 2022
Updated17 Jun 2026

Description

The package com.alibaba:fastjson before 1.2.83 are vulnerable to Deserialization of Untrusted Data by bypassing the default autoType shutdown restrictions, which is possible under certain conditions. Exploiting this vulnerability allows attacking remote servers. Workaround: If upgrading is not possible, you can enable [safeMode](https://github.com/alibaba/fastjson/wiki/fastjson_safemode).

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 4 indexed Published artifacts you can open, in GitHub PoC; first seen 2023-03-01.
  • EPSS 19% chance in 30 days A model's forecast, not a report of exploitation. Higher than 97% of all scored CVEs.

2 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC CVE-2022-25845(fastjson1.2.80) exploit in Spring Env! 109 2024-11-07
GitHub PoC exploit by python 7 2024-11-26
GitHub PoC nerowander/CVE-2022-25845-exploit 1 2023-03-01
GitHub PoC a scenario based on CVE-2022-25845 yielding a TP for metadata based SCA but a FN if the callgraph is used 2024-01-28

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by A reference pointing at the upstream fix: a commit, a PR, a Red Hat bug
Finding A reference points at an upstream fix (commit tier): https://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d. That makes this CVE a candidate for an ARMR patch rule — it is the kind of defect ARMR can address, and there is a fix to work from. No rule exists and none is scheduled: writing one means reading the linked change and finding a hook point ARMR can express it at, which may turn out not to exist.
Candidate fix https://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d : a commit: the change itself

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 8.1 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H report@snyk.io Secondary
CVSS 2.0 6.8 none AV:N/AC:M/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update July 2022 ↗ CPU 2022-Q3 Oracle Communications / UDR (fastjson) (22.2.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications UDR (fastjson) 22.2.0 22.2.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.alibaba:fastjson 1.2.25 1.2.83 unbounded

Products and versions

3 products, 3 version entries
SourceVendorProductSchemeAffected versions
nvd alibaba fastjson generic < 1.2.83
osv com.alibaba fastjson generic ≥ 1.2.25 and < 1.2.83
nvd oracle communications cloud native core unified data repository generic 22.2.0

References

URLTags
https://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d commit
https://github.com/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15 WEB
https://github.com/alibaba/fastjson PACKAGE
https://github.com/alibaba/fastjson/releases/tag/1.2.83 WEB
https://github.com/alibaba/fastjson/wiki/security_update_20220523 WEB
https://snyk.io/vuln/SNYK-JAVA-COMALIBABA-2859222 WEB
https://www.ddosi.org/fastjson-poc WEB
https://www.oracle.com/security-alerts/cpujul2022.html WEB
https://www.ddosi.org/fastjson-poc/ Exploit, Third Party Advisory

Timeline

Published2022-06-10By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.