Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-829.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Alibaba | Fastjson | before 1.2.48 | 1.2.48 | Patch available | CNA |
| — | com.alibaba:fastjson (Maven) | before 1.2.48 | 1.2.48 | Patch available | GHSA-jm7w-5684-pvh8 |
- Fastjson VendorAlibaba Affected before 1.2.48 Fixed in 1.2.48 Patch available CNA
- com.alibaba:fastjson (Maven) Vendor— Affected before 1.2.48 Fixed in 1.2.48 Patch available GHSA-jm7w-5684-pvh8
Remediation
- Fix · CNA Fastjson (Alibaba) Fixed in 1.2.48
- Fix · GHSA-jm7w-5684-pvh8 com.alibaba:fastjson (Maven) Fixed in 1.2.48 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Critical. Red Hat's page for this CVE →
Not affected: 7 products
- OpenShift Service Mesh 2
- Red Hat Fuse 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat build of Apache Camel for Spring Boot 4
- Red Hat build of Debezium 2
- Red Hat build of Debezium 3
Timeline
- 2026-10-02 Threatist record created from CVE-2025-70974
- 2026-10-03 Alias added: GHSA-jm7w-5684-pvh8
- 2026-10-05 2 new references · GHSA-jm7w-5684-pvh8
References
Other 11
- https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48
- https://www.seebug.org/vuldb/ssvid-98020
- https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238
- https://www.freebuf.com/vuls/208339.html
- https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce
- https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger
- https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955
- https://access.redhat.com/security/cve/CVE-2025-70974
- https://bugzilla.redhat.com/show_bug.cgi?id=2428203
- https://github.com/alibaba/fastjson
- https://web.archive.org/web/20220121055754/https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955
More Alibaba vulnerabilities
- TI-2021-10154 Authentication bypass in Alibaba nacos CVSS 3.1CRITICAL 9.8
- TI-2021-10155 Authentication bypass in Alibaba nacos CVSS 3.1HIGH 8.6
- TI-2017-13524 parseObject in Fastjson before 1.2.25, as used in FastjsonEngine in Pippo 1.11.0 and… CVSS 3.0CRITICAL 9.8
- TI-2022-09412 Deserialization of untrusted data in com.alibaba:fastjson CVSS 3.1CRITICAL 9.8
- TI-2021-19162 An Access Control vulnerability exists in Nacos 2.0.3 in the access prompt page; enter… CVSS 3.1HIGH 8.8
- TI-2026-13926 Remote Code Execution in fastjson 1.2.68–1.2.83 CVSS 3.1CRITICAL 9.0
Sources
- CVE-2025-70974 · CVE Program
- CVE-2025-70974 · NVD
- FIRST EPSS
- GHSA-jm7w-5684-pvh8 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-70974 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences