CVE-2025-70974
published critical CVSS 3.1 · 10.0fastjson: Fastjson: Remote Code Execution via JNDI Injection due to autoType mishandling
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alibaba | — | Fastjson0 to < 1.2.48 · Other versions: unaffected | Affected | Not stated | mitre |
| Red Hat | — | openshift-service-mesh/grafana-rhel8OpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-service-mesh/istio-cni-rhel8OpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-service-mesh/istio-must-gather-rhel9OpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-service-mesh/istio-operator-bundleOpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-service-mesh/istio-rhel8-operatorOpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-service-mesh/pilot-rhel8OpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-service-mesh/proxyv2-rhel9OpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
Show 7 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | openshift-service-mesh/ratelimit-rhel8OpenShift Service Mesh 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | fastjsonRed Hat build of Apache Camel for Spring Boot 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | fastjsonRed Hat build of Debezium 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | fastjsonRed Hat build of Debezium 3 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | fastjsonRed Hat Fuse 7 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | fastjsonRed Hat JBoss Enterprise Application Platform 8 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | fastjsonRed Hat JBoss Enterprise Application Platform Expansion Pack | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in Fastjson, a popular Java library for converting Java objects to JSON and vice versa. This vulnerability allows a remote attacker to execute arbitrary code on a system by sending a specially crafted JSON document. The issue stems from Fastjson's "autoType" feature, which, when mishandled, can lead to Java Naming and Directory Interface (JNDI) injection. This allows an attacker to inject and execute malicious code, posing a critical risk to affected systems. This flaw has been actively exploited in real-world attacks.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 10.0 | critical | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Alibaba | Fastjson | 0 to < 1.2.48 (affected · custom)Default: unaffected | mitre · cna |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Service Mesh 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat build of Apache Camel for Spring Boot 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat build of Debezium 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat build of Debezium 3 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Fuse 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-829 CWE-829 Inclusion of Functionality from Untrusted Control Sphere
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
10- https://access.redhat.com/security/cve/CVE-2025-70974
- RHBZ#2428203 https://bugzilla.redhat.com/show_bug.cgi?id=2428203
- https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955
- https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48
- https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-70974.json
- https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger
- https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238
- https://www.freebuf.com/vuls/208339.html
- https://www.seebug.org/vuldb/ssvid-98020
Provider assertions
3mitre · cna
redhat-SADP · adp
fastjson: Fastjson: Remote Code Execution via JNDI Injection due to autoType mishandling
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3ba3602a4df5772dd1d7e2ba7606ba9acf4439889c9364523844531c0ffbbebd
- Ingested
- 23 Sep 2026, 08:58:12 UTC
- Source record
- Official CVE record