CVE-2022-25845 in the critical feed json
Deserialization of Untrusted Data
published 4y ago modified 4mo ago also GHSA-pv7h-hx5h-mgfj , EUVD-2022-6120
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 18.7%
- EPSS 18.7% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- maven com.alibaba:fastjson 1.2.83
- n/a com.alibaba:fastjson 1.2.83
Is CVE-2022-25845 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25845 updated cvss 8.1
fastjson: autoType shutdown restriction bypass leads to deserialization
-
Red Hat Integration Camel K 1 fastjson Red Hat Integration Camel Quarkus 1 fastjsonaffected: workaround, no fix available
-
Red Hat Integration Data Virtualisation Operator fastjsonaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Fuse 7.11fixed: vendor fix RHSA-2022:5532
-
Red Hat OpenShift Application Runtimes fastjsonnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
18.74% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- ddosi.org https://www.ddosi.org/fastjson-poc/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.alibaba:fastjson | >=1.2.25, <1.2.83 |
1.2.83 |
Affected products
- n/a com.alibaba:fastjson
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15
web, patch, third-party-advisory
-
github.com
/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web, patch, third-party-advisory
-
ddosi.org
/fastjson-poc/
exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-COMALIBABA-2859222
web, third-party-advisory
-
github.com
/alibaba/fastjson/wiki/security_update_20220523
web, third-party-advisory
-
github.com
/alibaba/fastjson/releases/tag/1.2.83
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25845
advisory
-
github.com
/alibaba/fastjson
package
-
ddosi.org
/fastjson-poc
web
Sources
- CVE List CVE-2022-25845
- GitHub Advisory GHSA-pv7h-hx5h-mgfj
- NVD CVE-2022-25845
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.