CVE-2025-70974
Fastjson JNDI Injection Vulnerability
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.
INFO
Published Date :
Jan. 9, 2026, 7:16 a.m.
Last Modified :
June 27, 2026, 5:16 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | CRITICAL | 8254265b-2729-46b6-b9e3-3dfca2d5bfca | ||||
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 3.1 | CRITICAL | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Update Fastjson to version 1.2.48 or later.
- Disable autoType parsing if possible.
- Sanitize JSON input for @type fields.
- Validate JNDI references carefully.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-70974.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-70974 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-70974
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-70974 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-70974 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 27, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:service_mesh:2'], 'vendor': 'Red Hat', 'product': 'OpenShift Service Mesh 2', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:camel_spring_boot:4'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Apache Camel for Spring Boot 4', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:debezium:2'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Debezium 2', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:debezium:3'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Debezium 3', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:jboss_fuse:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Fuse 7', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:jboss_enterprise_application_platform:8'], 'vendor': 'Red Hat', 'product': 'Red Hat JBoss Enterprise Application Platform 8', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:jbosseapxp'], 'vendor': 'Red Hat', 'product': 'Red Hat JBoss Enterprise Application Platform Expansion Pack', 'defaultStatus': 'unaffected'}] Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H Added CWE CWE-829 Added Reference https://access.redhat.com/security/cve/CVE-2025-70974 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2428203 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-70974.json -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Alibaba', 'product': 'Fastjson', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '1.2.48', 'versionType': 'custom'}], 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-70974', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-01-09T21:37:04.264336Z'} -
New CVE Received by [email protected]
Jan. 09, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H Added CWE CWE-829 Added Reference https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955 Added Reference https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48 Added Reference https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce Added Reference https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger Added Reference https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238 Added Reference https://www.freebuf.com/vuls/208339.html Added Reference https://www.seebug.org/vuldb/ssvid-98020