Deserialization in Alibaba Fastjson
CVE-2022-25845
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).
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.187, 97.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Alibaba Fastjson
- Oracle Communications Cloud Native Core Unified Data Repository — versions 22.2.0
- Com.alibaba:fastjson — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
7 public repositories with exploit or proof-of-concept code for this CVE:
- luelueking/CVE-2022-25845-In-Spring (109 stars, last pushed 2024-11-07): CVE-2022-25845(fastjson1.2.80) exploit in Spring Env!
- hosch3n/FastjsonVulns (91 stars, last pushed 2022-09-02): [fastjson 1.2.80] CVE-2022-25845 aspectj fileread & groovy remote classload
- ph0ebus/CVE-2022-25845-In-Spring (7 stars, last pushed 2024-12-01): exploit by python
- nerowander/CVE-2022-25845-exploit (1 star, last pushed 2023-03-01)
- cuijiung/fastjson-CVE-2022-25845 (last pushed 2025-07-18)
- scabench/fastjson-tp1fn1 (last pushed 2024-01-29): a scenario based on CVE-2022-25845 yielding a TP for metadata based SCA but a FN if the callgraph is used
- Expl0desploit/CVE-2022-25845
Also mentioned in 35 other repositories (20142995/sectool, 54huarui/fastjsonfileread-test-exp, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JAVA-COMALIBABA-2859222 (Third Party Advisory)
- www.ddosi.org/fastjson-poc/ (Exploit, Third Party Advisory)
- github.com/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15 (Patch, Third Party Advisory)
- github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d (Patch, Third Party Advisory)
- github.com/alibaba/fastjson/wiki/security_update_20220523 (Third Party Advisory)
- github.com/alibaba/fastjson/releases/tag/1.2.83 (Third Party Advisory, Release Notes)
- www.oracle.com/security-alerts/cpujul2022.html (Patch, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.