CVE-2025-70974: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in Alibaba Fastjson
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.
AI Analysis
Technical Summary
Alibaba Fastjson versions prior to 1.2.48 mishandle the autoType feature, allowing an attacker to craft JSON input with an @type key that names a Java class. This can trigger calls to public methods of that class, which depending on their behavior, may lead to JNDI injection attacks using attacker-supplied payloads embedded elsewhere in the JSON document. This vulnerability stems from an incomplete fix of CVE-2017-18349 and has been exploited in the wild from 2023 to 2025. The CVSS 3.1 base score is 10.0 (critical), reflecting network attack vector, no privileges required, no user interaction, and complete confidentiality, integrity, and availability impact. The Red Hat advisory linked does not explicitly mention patch availability in the provided content, so patch status is not confirmed here.
Potential Impact
Successful exploitation can lead to remote code execution via JNDI injection, resulting in full compromise of affected systems. The vulnerability affects confidentiality, integrity, and availability with critical severity. It has been exploited in the wild, indicating active threat. Systems using vulnerable Fastjson versions are at high risk of compromise.
Mitigation Recommendations
Patch status is not explicitly confirmed in the provided vendor advisory content. Users should check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2025-70974 for the latest remediation guidance. Upgrading Fastjson to version 1.2.48 or later is expected to address the issue, as the vulnerability affects versions before 1.2.48. Until patched, avoid processing untrusted JSON input with autoType enabled or disable autoType functionality if possible.
CVE-2025-70974: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in Alibaba Fastjson
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.
CVSS v3.1
Score 10.0critical
Affected software
Alibaba
Fastjson
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Alibaba Fastjson versions prior to 1.2.48 mishandle the autoType feature, allowing an attacker to craft JSON input with an @type key that names a Java class. This can trigger calls to public methods of that class, which depending on their behavior, may lead to JNDI injection attacks using attacker-supplied payloads embedded elsewhere in the JSON document. This vulnerability stems from an incomplete fix of CVE-2017-18349 and has been exploited in the wild from 2023 to 2025. The CVSS 3.1 base score is 10.0 (critical), reflecting network attack vector, no privileges required, no user interaction, and complete confidentiality, integrity, and availability impact. The Red Hat advisory linked does not explicitly mention patch availability in the provided content, so patch status is not confirmed here.
Potential Impact
Successful exploitation can lead to remote code execution via JNDI injection, resulting in full compromise of affected systems. The vulnerability affects confidentiality, integrity, and availability with critical severity. It has been exploited in the wild, indicating active threat. Systems using vulnerable Fastjson versions are at high risk of compromise.
Mitigation Recommendations
Patch status is not explicitly confirmed in the provided vendor advisory content. Users should check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2025-70974 for the latest remediation guidance. Upgrading Fastjson to version 1.2.48 or later is expected to address the issue, as the vulnerability affects versions before 1.2.48. Until patched, avoid processing untrusted JSON input with autoType enabled or disable autoType functionality if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-01-09T06:43:23.338Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2025-70974","vendor":"Red Hat"}]
Threat ID: 6960a6a3ecefc3cd7c0ce3f6
Added to database: 01/09/2026, 06:56:35 UTC
Last enriched: 07/15/2026, 08:23:05 UTC
Last updated: 09/10/2026, 22:27:34 UTC
Views: 778
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.