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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.alibaba » fastjson | < 1.2.48 | 1.2.48 |
Blast radius
66% of the dependent artifacts (3,670) still pull an affected version in their latest release.
| Depth | Dependent 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
- redis.clients » jedis2,971 usages
- org.jboss.resteasy » resteasy-jaxrs1,181 usages
- com.alibaba.cloud » spring-cloud-starter-alibaba-nacos-discovery514 usages
- com.alibaba.nacos » nacos-client471 usages
- com.alibaba.cloud » spring-cloud-starter-alibaba-nacos-config400 usages
- com.alibaba » dubbo337 usages
- org.apache.rocketmq » rocketmq-client329 usages
- com.ibeetl » beetl256 usages
- com.alibaba » arouter-api165 usages
- com.jdcloud.sdk » core137 usages
- com.alibaba.csp » sentinel-datasource-nacos117 usages
- org.apache.dubbo » dubbo-common112 usages
- com.aliyun.openservices » ons-client111 usages
- com.alipay.android » android-maven-plugin92 usages
- me.zhyd.oauth » JustAuth91 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-70974
- Webhttps://access.redhat.com/security/cve/CVE-2025-70974
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=2428203
- Packagehttps://github.com/alibaba/fastjson
- Webhttps://github.com/alibaba/fastjson/compare/1.2.47...1.2.48
- Webhttps://github.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce
- Webhttps://web.archive.org/web/20220121055754/https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955
- Webhttps://www.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger
- Webhttps://www.cnvd.org.cn/flaw/show/CNVD-2019-22238
- Webhttps://www.freebuf.com/vuls/208339.html
- Webhttps://www.seebug.org/vuldb/ssvid-98020
