Related Vulnerabilities: CVE-2022-25845  

A flaw was found in com.alibaba:fastjson, a fast JSON parser/generator for Java. Affected versions of this package are vulnerable to Deserialization of Untrusted Data by bypassing the default autoType shutdown restrictions, which is possible under certain conditions.

Description

A flaw was found in com.alibaba:fastjson, a fast JSON parser/generator for Java. Affected versions of this package are vulnerable to Deserialization of Untrusted Data by bypassing the default autoType shutdown restrictions, which is possible under certain conditions.

Mitigation

Users who can not upgrade to the fixed version may enable safeMode; this completely disables the autoType function and eliminates the vulnerability risk. [https://github.com/alibaba/fastjson/wiki/fastjson_safemode]

Additional Information

  • Bugzilla 2100654: CVE-2022-25845 fastjson: autoType shutdown restriction bypass leads to deserialization
  • CWE-502: Deserialization of Untrusted Data
  • FAQ: Frequently asked questions about CVE-2022-25845