CVE-2025-70974: JNDI injection in Fastjson autoType processing
CVE-2025-70974 affects Alibaba Fastjson versions before 1.2.48. Improper handling of autoType allows an attacker-controlled JSON @type value to identify a Java class whose public methods may be invoked during processing. Depending on those methods, an attacker-supplied payload elsewhere in the same document can enable JNDI injection and potentially remote code execution. The vulnerability results from an incomplete fix for CVE-2017-18349 and was exploited in the wild from 2023 through 2025. A later bypass is tracked separately as CVE-2022-25845.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Processing attacker-controlled JSON can invoke public methods of attacker-selected Java classes and enable JNDI injection. Depending on the invoked methods and runtime environment, exploitation may lead to remote code execution.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, avoid processing untrusted JSON with Fastjson autoType enabled. Disable or strictly restrict autoType, block dangerous class-resolution paths, and prevent attacker-controlled @type values from resolving arbitrary classes. Where possible, prevent untrusted inputs from reaching Fastjson deserialization.
Remediation
Patch, then assume compromise.
Upgrade com.alibaba:fastjson to version 1.2.48 or later to address this specific vulnerability. Version 1.2.48 should not be treated as resolving all related autoType vulnerabilities; account separately for the later bypass tracked as CVE-2022-25845.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2025-70974 exploited in the wild?
- Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-70974?
- Yes. As of Oct 9, 2026, Mallory has reports of a public exploit for CVE-2025-70974.
- Is there a patch for CVE-2025-70974?
- Upgrade com.alibaba:fastjson to version 1.2.48 or later to address this specific vulnerability. Version 1.2.48 should not be treated as resolving all related autoType vulnerabilities; account separately for the later bypass tracked as CVE-2022-25845.
- How severe is CVE-2025-70974?
- CVE-2025-70974 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 0.75% (56th percentile) as of Oct 9, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.