patchminder
Proof of concept · GitHub CVE-2022-25845

Vulnerabilityin the com.alibaba:fastjson package.

Published 10 Jun 2022 · Updated 16 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 18.7% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.2.83 or later
In plain words

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).

What to do now
  • Upgrade com.alibaba:fastjson (Maven) to 1.2.83 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
com.alibaba:fastjson
Not confirmed
Not confirmed
CVE record
com.alibaba:fastjson (Maven)
1.2.25 to before 1.2.83
1.2.83
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 24 Feb 2022
    CVE ID reserved by snyk.
  2. 10 Jun 2022
    Published in the CVE List.
  3. 1 Mar 2023
    First public proof of concept on GitHub.
  4. 16 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
5 repositories
GitHubno warning signs foundluelueking/CVE-2022-25845-In-Spring109 stars · created 7 Nov 2024CVE-2022-25845(fastjson1.2.80) exploit in Spring Env!
GitHubno warning signs foundph0ebus/CVE-2022-25845-In-Spring7 stars · created 26 Nov 2024exploit by python
GitHubno warning signs foundnerowander/CVE-2022-25845-exploit1 stars · created 1 Mar 2023
GitHubno warning signs foundscabench/fastjson-tp1fn10 stars · created 28 Jan 2024a scenario based on CVE-2022-25845 yielding a TP for metadata based SCA but a FN if the callgraph is used
GitHubno warning signs foundcuijiung/fastjson-CVE-2022-258450 stars · created 11 Jul 2025

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2022-25845: Vulnerability in the com.alibaba:fastjson package. https://patchminder.com/cve/cve-2022-25845/ (accessed 5 December 2026).