Bearish

GCSA revealed Fastjson 1.2.83 zero‑day enabling remote code execution

На русском
2 min

The GCSA Global Cybersecurity Alliance released a technical report describing a high-severity remote code execution vulnerability in Fastjson 1.2.83. The flaw allows RCE without traditional Gadget dependencies and works even when AutoType is set to false by default.

The exploit uses Fastjson’s own class metadata detection logic to load remote malicious classes. If an attacker can control JSON input parsed by Fastjson, and SafeMode is disabled and outbound network access is permitted, they can achieve unauthenticated remote code execution without relying on common Gadget chains such as TemplatesImpl, JNDI, or Commons Collections on the target classpath.

Tests show that a single JSON payload successfully triggers RCE across Temurin JDK versions 8, 17, 21, and 25, including environments that use Spring Boot Loader isolation. The vulnerability is high severity: the attack is network-remote, requires no user interaction, and severely impacts confidentiality, integrity, and availability.

Invalid safety assumptions

The report invalidates several common assumptions about Fastjson security:

“AutoType is disabled by default, so it’s safe” — Fastjson remains exploitable despite AutoType=false.

“Fixed parseObject second parameter, so it’s safe” — Fixes to parseObject do not block this technique.

“No known Gadgets in the classpath, so it’s safe” — The attack does not require local Gadget chains.

“JDK 17+ rejects http:// internal names, so at most it’s just SSRF” — The vulnerability still enables RCE on JDK 17 and newer.

Defense recommendations

  • Enable SafeMode immediately: ParserConfig.getGlobalInstance().setSafeMode(true);
  • Prioritize migration to Fastjson 2.x and complete regression testing.
  • Restrict outbound network access from JVMs and block non-essential external HTTP connections.
  • Configure WAF or gateway rules to block JSON requests where a decoded key equals @type.

Source: GCSA Global Cybersecurity Alliance | https://media.gcsa.org/en-US/news-3725925

Original publication

Authors credited by the source: Alan Lewis

Published by Holder based on an external source.