CVE-2022-25845: Unsafe deserialization in com.alibaba:fastjson
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99566%
CWE
Published
6/11/2022
Updated
5/15/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| com.alibaba:fastjson | maven | >= 1.2.25, < 1.2.83 | 1.2.83 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the checkAutoType() function's handling of autoType validation. Key indicators from the commit diff show: 1) Expansion of denyHashCodes to block more dangerous classes 2) Added null return for Exception-derived classes when autoTypeSupport=false 3) Modified test case showing Exception deserialization behavior changed. The function's previous failure to properly validate() these edge cases allowed bypassing autoType restrictions through crafted payloads, particularly leveraging Exception inheritance chains which were not adequately restricted prior to 1.2.83.