Patchfirst
CVE-2025-70974 Critical · 10.0 EPSS 0.7%

Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON document, and the value of that key…

Fix:upgrade fastjson to 1.2.48 or later also fixes CVE-2017-18349 Details ↓

Alibaba · Fastjson

Summary

Fastjson before 1.2.48, a Java JSON library from Alibaba, mishandles autoType: when an @type key names a Java class, calls to certain public methods of that class can occur, enabling JNDI injection via an attacker-supplied payload elsewhere in the same JSON document. An unauthenticated remote attacker can exploit this over the network with low complexity and no user interaction, provided the application parses attacker-controlled JSON with autoType handling in effect.

Official description · CVE.org

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.

Breakdown
56.1 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 7 months before it was disclosed.

  1. First seen exploitedVulnCheck KEV evidence7 mo before
  2. Disclosedday 0

A fix was bypassed or incomplete once over 7 years.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2017-18349parseObject in Fastjson before 1.2.25, as used in FastjsonEngine…23 Oct 2018
  2. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textNOTE: this issue exists because of an incomplete fix for CVE-2017-18349.
    This CVECVE-2025-70974Fastjson before 1.2.48 mishandles autoType because, when an…9 Jan 2026

Affected versions and fixes

as published in the CVE record

Alibaba Fastjson

Affected: < 1.2.48

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: com.alibaba:fastjson.

Mavencom.alibaba:fastjsonGHSA-jm7w-5684-pvh8

Upgrade to 1.2.48 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2017-18349).

Set the version to 1.2.48 or later in your pom.xml or build.gradle.

The first fix for CVE-2025-70974.

Affected versions

If you runUpgrade to
All versions before 1.2.481.2.48

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 32 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

10 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close