Skip to main content
← All vulnerabilities
CVE-2025-70974GHSA-JM7W-5684-PVH8

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.48
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

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 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • Alibaba Fastjson

    fixed in 1.2.48

  • com.alibaba:fastjsonMaven

    fixed in 1.2.48

References 7

GitHub · alibaba/fastjson

seebug.org

cnvd.org.cn

freebuf.com

GitHub · vulhub/vulhub

cloudsek.com

cert.360.cn