{"id":"CVE-2025-70974","aliases":["GHSA-jm7w-5684-pvh8"],"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 t...","published_at":"2026-01-09T06:43:23.584Z","modified_at":"2026-10-05T18:45:05.985873Z","products":[],"rating":{"severity":"critical","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.007459999993443489,"percentile":0.5561000108718872,"date":"2026-11-19T00:00:00Z"},"priority":12,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"Alibaba/Fastjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.48"}]}],"fixed":["1.2.48"],"provider":"cvelistv5","source":"CVE-2025-70974","relation":"self"},{"ecosystem":"Maven","package":"com.alibaba:fastjson","purl":"pkg:maven/com.alibaba/fastjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.48"}]}],"versions":["1.1.15","1.1.16","1.1.17","1.1.18","1.1.19","1.1.20","1.1.21","1.1.22","1.1.23","1.1.24","1.1.25","1.1.26","1.1.27","1.1.28","1.1.29","1.1.30","1.1.31","1.1.31.sec01","1.1.31.sec04","1.1.31.sec06","1.1.31.sec07","1.1.31.sec10","1.1.31_noneautotype","1.1.32","1.1.33","1.1.33.android","1.1.33.sec01","1.1.33.sec04","1.1.33.sec06","1.1.33.sec10","1.1.34","1.1.34.android","1.1.34.sec01","1.1.34.sec04","1.1.34.sec06","1.1.34.sec09","1.1.34.sec10","1.1.34_noneautotype","1.1.35","1.1.36","1.1.37","1.1.38","1.1.39","1.1.40","1.1.41","1.1.41.sec01","1.1.41.sec04","1.1.41.sec06","1.1.41.sec10","1.1.42","1.1.42.android","1.1.43","1.1.43.android","1.1.44","1.1.44.android","1.1.45","1.1.45.android","1.1.46","1.1.46.android","1.1.46.sec01","1.1.46.sec04","1.1.46.sec06","1.1.46.sec09","1.1.46.sec10","1.1.46_noneautotype","1.1.47.android","1.1.48.android","1.1.49.android","1.1.50.android","1.1.51.android","1.1.52.android","1.1.53.android","1.1.54.android","1.1.55.android","1.1.56.android","1.1.57.android","1.1.58.android","1.1.59.android","1.1.60.android","1.1.61.android","1.1.62.android","1.1.63.android","1.1.64.android","1.1.65.android","1.1.66.android","1.1.67.android","1.1.68.android","1.1.69.android","1.1.70.android","1.1.70.android_noneautotype","1.1.71.android","1.1.72.android","1.1.73.android","1.1.76.android","1.1.76.android_noneautotype","1.1.77.android_noneautotype","1.2.0","1.2.1","1.2.10","1.2.11","1.2.12","1.2.13","1.2.13.sec01","1.2.14","1.2.14.sec01","1.2.14.sec10","1.2.15","1.2.16","1.2.16.sec01","1.2.16.sec04","1.2.16.sec10","1.2.17","1.2.18","1.2.19","1.2.2","1.2.2.sec01","1.2.2.sec10","1.2.20","1.2.21","1.2.22","1.2.23","1.2.24","1.2.25","1.2.25.sec10","1.2.26","1.2.27","1.2.27.sec06","1.2.27.sec09","1.2.27.sec10","1.2.28","1.2.28.odps","1.2.29","1.2.29.sec04","1.2.29.sec06","1.2.29.sec09","1.2.29.sec10","1.2.3","1.2.30","1.2.31","1.2.31.sec10","1.2.31_noneautotype","1.2.32","1.2.33","1.2.34","1.2.35","1.2.36","1.2.37","1.2.38","1.2.39","1.2.4","1.2.4.sec01","1.2.4.sec04","1.2.4.sec09","1.2.4.sec10","1.2.40","1.2.41","1.2.42","1.2.43","1.2.44","1.2.45","1.2.46","1.2.47","1.2.5","1.2.6","1.2.7","1.2.7.sec01","1.2.7.sec04","1.2.7.sec06","1.2.7.sec09","1.2.7.sec10","1.2.8","1.2.8.sec01","1.2.8.sec04","1.2.8.sec05","1.2.8.sec06","1.2.8.sec09","1.2.8.sec10","1.2.8.sec10_noneautotype","1.2.8_noneautotype","1.2.9"],"fixed":["1.2.48"],"provider":"osv","source":"GHSA-jm7w-5684-pvh8","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"not_affected","packages":["openshift-service-mesh/grafana-rhel8","openshift-service-mesh/istio-cni-rhel8","openshift-service-mesh/istio-must-gather-rhel9","openshift-service-mesh/istio-operator-bundle","openshift-service-mesh/istio-rhel8-operator","openshift-service-mesh/pilot-rhel8","openshift-service-mesh/proxyv2-rhel9","openshift-service-mesh/ratelimit-rhel8"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","cpe":"cpe:/a:redhat:camel_spring_boot:4","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat build of Debezium 2","cpe":"cpe:/a:redhat:debezium:2","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat build of Debezium 3","cpe":"cpe:/a:redhat:debezium:3","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-70974","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-70974","license":"CC-BY-4.0","published_at":"2026-01-09T06:43:23.584Z","modified_at":"2026-07-15T11:47:44.676Z","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 t...","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2025-70974"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"redhat-SADP:CVE-2025-70974"}],"affected":[{"ecosystem":"CVE","package":"Alibaba/Fastjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.48"}]}],"fixed":["1.2.48"],"provider":"cvelistv5","source":"CVE-2025-70974","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48"},{"type":"WEB","url":"https://www.seebug.org/vuldb/ssvid-98020"},{"type":"WEB","url":"https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238"},{"type":"WEB","url":"https://www.freebuf.com/vuls/208339.html"},{"type":"WEB","url":"https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce"},{"type":"WEB","url":"https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger"},{"type":"WEB","url":"https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955"}]},{"provider":"osv","source_id":"GHSA-jm7w-5684-pvh8","relation":"self","url":"https://osv.dev/vulnerability/GHSA-jm7w-5684-pvh8","license":"CC-BY-4.0","published_at":"2026-01-09T09:31:19Z","modified_at":"2026-10-05T18:45:05.985873Z","summary":"FASTJSON Includes Functionality from Untrusted Control Sphere","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GHSA-jm7w-5684-pvh8"}],"affected":[{"ecosystem":"Maven","package":"com.alibaba:fastjson","purl":"pkg:maven/com.alibaba/fastjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.48"}]}],"versions":["1.1.15","1.1.16","1.1.17","1.1.18","1.1.19","1.1.20","1.1.21","1.1.22","1.1.23","1.1.24","1.1.25","1.1.26","1.1.27","1.1.28","1.1.29","1.1.30","1.1.31","1.1.31.sec01","1.1.31.sec04","1.1.31.sec06","1.1.31.sec07","1.1.31.sec10","1.1.31_noneautotype","1.1.32","1.1.33","1.1.33.android","1.1.33.sec01","1.1.33.sec04","1.1.33.sec06","1.1.33.sec10","1.1.34","1.1.34.android","1.1.34.sec01","1.1.34.sec04","1.1.34.sec06","1.1.34.sec09","1.1.34.sec10","1.1.34_noneautotype","1.1.35","1.1.36","1.1.37","1.1.38","1.1.39","1.1.40","1.1.41","1.1.41.sec01","1.1.41.sec04","1.1.41.sec06","1.1.41.sec10","1.1.42","1.1.42.android","1.1.43","1.1.43.android","1.1.44","1.1.44.android","1.1.45","1.1.45.android","1.1.46","1.1.46.android","1.1.46.sec01","1.1.46.sec04","1.1.46.sec06","1.1.46.sec09","1.1.46.sec10","1.1.46_noneautotype","1.1.47.android","1.1.48.android","1.1.49.android","1.1.50.android","1.1.51.android","1.1.52.android","1.1.53.android","1.1.54.android","1.1.55.android","1.1.56.android","1.1.57.android","1.1.58.android","1.1.59.android","1.1.60.android","1.1.61.android","1.1.62.android","1.1.63.android","1.1.64.android","1.1.65.android","1.1.66.android","1.1.67.android","1.1.68.android","1.1.69.android","1.1.70.android","1.1.70.android_noneautotype","1.1.71.android","1.1.72.android","1.1.73.android","1.1.76.android","1.1.76.android_noneautotype","1.1.77.android_noneautotype","1.2.0","1.2.1","1.2.10","1.2.11","1.2.12","1.2.13","1.2.13.sec01","1.2.14","1.2.14.sec01","1.2.14.sec10","1.2.15","1.2.16","1.2.16.sec01","1.2.16.sec04","1.2.16.sec10","1.2.17","1.2.18","1.2.19","1.2.2","1.2.2.sec01","1.2.2.sec10","1.2.20","1.2.21","1.2.22","1.2.23","1.2.24","1.2.25","1.2.25.sec10","1.2.26","1.2.27","1.2.27.sec06","1.2.27.sec09","1.2.27.sec10","1.2.28","1.2.28.odps","1.2.29","1.2.29.sec04","1.2.29.sec06","1.2.29.sec09","1.2.29.sec10","1.2.3","1.2.30","1.2.31","1.2.31.sec10","1.2.31_noneautotype","1.2.32","1.2.33","1.2.34","1.2.35","1.2.36","1.2.37","1.2.38","1.2.39","1.2.4","1.2.4.sec01","1.2.4.sec04","1.2.4.sec09","1.2.4.sec10","1.2.40","1.2.41","1.2.42","1.2.43","1.2.44","1.2.45","1.2.46","1.2.47","1.2.5","1.2.6","1.2.7","1.2.7.sec01","1.2.7.sec04","1.2.7.sec06","1.2.7.sec09","1.2.7.sec10","1.2.8","1.2.8.sec01","1.2.8.sec04","1.2.8.sec05","1.2.8.sec06","1.2.8.sec09","1.2.8.sec10","1.2.8.sec10_noneautotype","1.2.8_noneautotype","1.2.9"],"fixed":["1.2.48"],"provider":"osv","source":"GHSA-jm7w-5684-pvh8","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-70974"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-70974"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428203"},{"type":"PACKAGE","url":"https://github.com/alibaba/fastjson"},{"type":"WEB","url":"https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48"},{"type":"WEB","url":"https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce"},{"type":"WEB","url":"https://web.archive.org/web/20220121055754/https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955"},{"type":"WEB","url":"https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger"},{"type":"WEB","url":"https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238"},{"type":"WEB","url":"https://www.freebuf.com/vuls/208339.html"},{"type":"WEB","url":"https://www.seebug.org/vuldb/ssvid-98020"}]},{"provider":"redhat-vex","source_id":"CVE-2025-70974","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-70974","license":"CC-BY-4.0","published_at":"2026-01-09T06:43:23.584Z","modified_at":"2026-03-16T08:31:26Z","summary":"fastjson: Fastjson: Remote Code Execution via JNDI Injection due to autoType mishandling","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2025-70974"},{"type":"Red Hat","score":"Critical","source":"CVE-2025-70974"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"not_affected","packages":["openshift-service-mesh/grafana-rhel8","openshift-service-mesh/istio-cni-rhel8","openshift-service-mesh/istio-must-gather-rhel9","openshift-service-mesh/istio-operator-bundle","openshift-service-mesh/istio-rhel8-operator","openshift-service-mesh/pilot-rhel8","openshift-service-mesh/proxyv2-rhel9","openshift-service-mesh/ratelimit-rhel8"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","cpe":"cpe:/a:redhat:camel_spring_boot:4","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat build of Debezium 2","cpe":"cpe:/a:redhat:debezium:2","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"},{"vendor":"Red Hat","product":"Red Hat build of Debezium 3","cpe":"cpe:/a:redhat:debezium:3","status":"not_affected","packages":["fastjson"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-70974"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-70974.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-70974"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428203"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-70974"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-70974"},{"type":"WEB","url":"https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955"},{"type":"WEB","url":"https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48"},{"type":"WEB","url":"https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce"},{"type":"WEB","url":"https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger"},{"type":"WEB","url":"https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238"},{"type":"WEB","url":"https://www.freebuf.com/vuls/208339.html"},{"type":"WEB","url":"https://www.seebug.org/vuldb/ssvid-98020"}]}],"references":[{"type":"WEB","url":"https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48"},{"type":"WEB","url":"https://www.seebug.org/vuldb/ssvid-98020"},{"type":"WEB","url":"https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238"},{"type":"WEB","url":"https://www.freebuf.com/vuls/208339.html"},{"type":"WEB","url":"https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce"},{"type":"WEB","url":"https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger"},{"type":"WEB","url":"https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-70974"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-70974"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428203"},{"type":"PACKAGE","url":"https://github.com/alibaba/fastjson"},{"type":"WEB","url":"https://web.archive.org/web/20220121055754/https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-70974.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-70974"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-70974","url":"https://www.cve.org/CVERecord?id=CVE-2025-70974","license":"CC-BY-4.0","modified_at":"2026-07-15T11:47:44.676Z","relation":"self"},{"provider":"osv","source_id":"GHSA-jm7w-5684-pvh8","url":"https://osv.dev/vulnerability/GHSA-jm7w-5684-pvh8","license":"CC-BY-4.0","modified_at":"2026-10-05T18:45:05.985873Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-70974","url":"https://access.redhat.com/security/cve/CVE-2025-70974","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:26Z","relation":"self"}]}
