Vulnerability · Published Jun 10, 2022 · Assigned by snyk
CVE-2022-25845Deserialization of Untrusted Data
High 8.1
In plain English
A high-severity security flaw in com.alibaba:fastjson. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 18.7% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
The package com.alibaba:fastjson before 1.2.83 are vulnerable to Deserialization of Untrusted Data by bypassing the default autoType shutdown restrictions, which is possible under certain conditions. Exploiting this vulnerability allows attacking remote servers. Workaround: If upgrading is not possible, you can enable [safeMode](https://github.com/alibaba/fastjson/wiki/fastjson_safemode).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.alibaba:fastjson | 1.2.83 | GHSA-pv7h-hx5h-mgfj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | com.alibaba:fastjson | unspecified – before 1.2.83 |
References
- https://snyk.io/vuln/SNYK-JAVA-COMALIBABA-2859222 x_refsource_MISC
- https://www.ddosi.org/fastjson-poc/ x_refsource_MISC
- https://github.com/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15 x_refsource_MISC
- https://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d x_refsource_MISC
- https://github.com/alibaba/fastjson/wiki/security_update_20220523 x_refsource_MISC
- https://github.com/alibaba/fastjson/releases/tag/1.2.83 x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC