---
id: CVE-2025-70974
title: >-
  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
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 …
severity: critical
cvss: 10
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-829
published: '2026-01-09'
updated: '2026-06-27'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-70974'
references:
  - url: 'https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955'
    label: cve@mitre.org
  - url: 'https://github.com/alibaba/fastjson/compare/1.2.47...1.2.48'
    label: cve@mitre.org
  - url: 'https://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce'
    label: cve@mitre.org
  - url: >-
      https://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger
    label: cve@mitre.org
  - url: 'https://www.cnvd.org.cn/flaw/show/CNVD-2019-22238'
    label: cve@mitre.org
  - url: 'https://www.freebuf.com/vuls/208339.html'
    label: cve@mitre.org
  - url: 'https://www.seebug.org/vuldb/ssvid-98020'
    label: cve@mitre.org
  - url: 'https://access.redhat.com/security/cve/CVE-2025-70974'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2428203'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-70974.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-70974'
  - url: >-
      https://web.archive.org/web/20220121055754/https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955
  - url: 'https://github.com/advisories/GHSA-jm7w-5684-pvh8'
tags:
  - nvd
  - ghsa
  - maven
epss: 0.00746
epssPercentile: 0.54623
ingestedAt: '2026-06-29T13:24:34.627Z'
aliases:
  - GHSA-jm7w-5684-pvh8
ecosystem: maven
vendor: alibaba
product: 'com.alibaba:fastjson'
affected:
  - 'com.alibaba:fastjson < 1.2.48'
patched:
  - 'com.alibaba:fastjson 1.2.48'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2025-70974)

Affected packages:

- `com.alibaba:fastjson < 1.2.48`

Patched in:

- `com.alibaba:fastjson 1.2.48`

Source: https://github.com/advisories/GHSA-jm7w-5684-pvh8
