CVE-2025-70974 FASTJSON Includes Functionality from Untrusted Control Sphere
Attackers can achieve remote code execution via JNDI injection by exploiting unsafe autoType handling in the Fastjson library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-70974?
CVE-2025-70974 is a critical unsafe deserialization vulnerability in Alibaba Fastjson, published on 9 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON document, and the value of that key is the name of a Java class, there may be calls to certain public methods of that class. Depending on the behavior of those methods, there may be JNDI injection with an attacker-supplied payload located elsewhere in that JSON document. This was exploited in the wild in 2023 through 2025. NOTE: this issue exists because of an incomplete fix for CVE-2017-18349. Also, a later bypass is covered by CVE-2022-25845.
Weakness: CWE-829
Which versions are affected by CVE-2025-70974?
2 open source packages ship an affected version, including com.alibaba:fastjson.
| Package | Affected | Fixed in |
|---|---|---|
com.alibaba:fastjson Maven | All versions | 1.2.48 |
com.alibaba:fastjson Maven | All versions | 1.2.48 |
How do I fix CVE-2025-70974?
Upgrade com.alibaba:fastjson to 1.2.48 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2025-70974 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-70974 exists.
Sources
Also known as GHSA-jm7w-5684-pvh8.