CVE-2025-70974
Fastjson library before version 1.2.48 allows attackers to execute arbitrary code by embedding malicious Java class names in JSON documents. When processing JSON with @type fields, the library instantiates these classes and calls their methods, which can be exploited to inject and execute remote code.
Fastjson's autoType feature deserializes arbitrary Java classes specified via @type keys in JSON input without sufficient validation, enabling JNDI injection attacks. An attacker can craft a JSON payload that triggers instantiation of gadget classes whose constructors or methods execute arbitrary code; this is a deserialization RCE vulnerability that bypasses incomplete fixes from CVE-2017-18349.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →