CRITICAL 10.0

CVE-2025-70974

FASTJSON Includes Functionality from Untrusted Control Sphere

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.alibaba » fastjson
< 1.2.48
1.2.48

Blast radius

1affected artifacts
195affected versions
5,548dependent artifacts (est.)
68,669dependent versions

66% of the dependent artifacts (3,670) still pull an affected version in their latest release.

DepthDependent versions
Direct
26,738
2 hops
18,185
3 hops
10,473
4 hops
9,414
5 hops
2,994
6 hops
865

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.