Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-70974
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 12:36 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-70974
Complete source record
{
"id": "3577cb3e73bfd67b1f22005e7fd9f09d6b8b1281662680f63e39be0821d5fab9",
"url": "https://osv.dev/vulnerability/CVE-2025-70974",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-70974",
"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.",
"evidence": "osv:CVE-2025-70974",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-70974",
"aliases": [
"CVE-2025-70974",
"GHSA-jm7w-5684-pvh8"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/alibaba/fastjson",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "28da8e194bb7bca71676bb10b9cb343653289de6"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.2.48"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.2.48"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"1.2.47",
"1.2.46",
"1.2.45",
"1.2.44",
"1.2.43",
"1.2.42",
"1.2.41",
"1.2.40",
"1.2.39",
"1.2.38",
"1.2.37",
"1.1.37",
"1.2.36",
"1.2.35",
"1.2.34",
"1.2.33",
"1.2.32",
"1.2.31",
"1.2.30",
"1.2.29",
"1.2.28",
"1.2.27",
"1.2.26",
"1.2.25",
"1.2.14",
"1.2.13",
"1.2.8",
"1.1.33",
"1.2.7",
"1.2.24",
"1.2.23",
"1.2.22",
"1.2.21",
"1.2.20",
"1.2.19",
"1.2.18",
"1.2.17",
"1.2.16",
"1.2.15",
"1.2.12",
"1.2.11_release",
"1.2.10",
"1.2.9",
"1.2.6",
"1.2.4",
"1.2.2",
"1.2.1",
"1.2.0",
"1.1.42",
"1.1.36",
"1.1.35",
"1.1.32",
"1.1.31",
"1.1.27",
"1.1.26",
"1.1.25",
"1.1.23",
"1.1.22",
"1.1.21",
"1.1.20"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-70974.json"
}
}
],
"modified": "2026-10-28T02:30:50.608090647Z",
"provider": "osv",
"references": [
"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.cnvd.org.cn/flaw/show/CNVD-2019-22238",
"https://www.freebuf.com/vuls/208339.html",
"https://www.seebug.org/vuldb/ssvid-98020",
"https://access.redhat.com/security/cve/CVE-2025-70974",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/70xxx/CVE-2025-70974.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-70974",
"https://bugzilla.redhat.com/show_bug.cgi?id=2428203",
"https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger"
],
"provider_metadata": {
"cwe_ids": [
"CWE-829"
],
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/70xxx/CVE-2025-70974.json"
}
},
"related_cves": [
{
"value": "CVE-2025-70974",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 519308,
"published_at": "2026-01-09T06:43:23.584+00:00"
}