CVE-2022-25845: Alibaba fastjson - Insecure Deserialization
- Cve: CVE-2022-25845
- Name: Alibaba fastjson - Insecure Deserialization
- 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).
- Impact: Remote attackers can execute arbitrary code via deserialization, potentially leading to full system compromise.
- Remediation: Upgrade to version 1.2.83 or later, or enable safeMode as a workaround.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.18743
- Epss percentile: 0.97346
- Assignee: [email protected]
- Published at: 2022-06-10T20:15:08Z
- Age in days: 1628
- Modified at: 2026-06-17T04:34:22Z
- Patch available: yes
- Public exploits total: 6
- References total: 7
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-25845
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-502 | Deserialization of Untrusted Data |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.ddosi.org/fastjson-poc/ | nvd | 2022-06-10 |
| https://github.com/cuijiung/fastjson-CVE-2022-25845 | poc-in-github | 2025-07-11 |
| https://github.com/ph0ebus/CVE-2022-25845-In-Spring | poc-in-github | 2024-11-26 |
| https://github.com/luelueking/CVE-2022-25845-In-Spring | poc-in-github | 2024-11-07 |
| https://github.com/scabench/fastjson-tp1fn1 | poc-in-github | 2024-01-28 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d | Patch, Third Party Advisory |
| https://github.com/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15 | Patch, Third Party Advisory |
| https://www.oracle.com/security-alerts/cpujul2022.html | Patch, Third Party Advisory |
| https://www.ddosi.org/fastjson-poc/ | Exploit, Third Party Advisory |
| https://github.com/alibaba/fastjson/releases/tag/1.2.83 | Release Notes, Third Party Advisory |
| https://github.com/alibaba/fastjson/wiki/security_update_20220523 | Third Party Advisory |
| https://snyk.io/vuln/SNYK-JAVA-COMALIBABA-2859222 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| alibaba:fastjson | < 1.2.83 | no | nvd | /v1/products/alibaba/fastjson |
| oracle:communications_cloud_native_core_unified_data_repository | = 22.2.0 | no | nvd | /v1/products/oracle/communications_cloud_native_core_unified_data_repository |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| alibaba/fastjson | commit, package, releases | yes | /v1/repositories/alibaba/fastjson |
Index
- Repositories: 160
- Repositories high signal: 89
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 6
- Public exploit first date: 2022-06-10
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts