# CVE-2022-25845: Unsafe deserialization in com.alibaba:fastjson

Source: https://junglewise.ai/threats/cve-2022-25845-unsafe-deserialization-in-com-alibaba-fastjson  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-11  
License: CC BY 4.0 with a link back

CVE-2022-25845 · Severity: low · CVSS 3.1 · Published 2022-06-11

Unsafe deserialization in com.alibaba:fastjson

Technologies: [com.alibaba:fastjson (Maven)](https://junglewise.ai/threats/technologies/com-alibaba-fastjson). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-25845 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-25845 being exploited in the wild.

**How severe is CVE-2022-25845?** Low severity, with a CVSS score of 3.1, published 11 June 2022.

**Which products and versions are affected?** com.alibaba:fastjson (Maven) ECOSYSTEM:introduced=1.2.25,fixed=1.2.83.

**Is there a fix for CVE-2022-25845?** Yes. com.alibaba:fastjson (Maven): upgrade to 1.2.83 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-25845?** Check whether you run com.alibaba:fastjson (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.alibaba:fastjson (Maven): upgrade to 1.2.83 or later

  ```sh
  # set com.alibaba:fastjson to 1.2.83 in your pom.xml or build.gradle
  ```


## Affected products

- com.alibaba:fastjson (Maven) ECOSYSTEM:introduced=1.2.25,fixed=1.2.83

## Identifiers

- CVE-2022-25845
- GHSA-pv7h-hx5h-mgfj

## Related threats

- [Alibaba fastjson remote code execution in Spring Boot fat-jar deployments](https://junglewise.ai/threats/cve-2026-16723-alibaba-fastjson-remote-code-execution-in-spring-boot-fat-jar)
- [Alibaba Fastjson remote code execution via autoType JNDI injection](https://junglewise.ai/threats/cve-2025-70974-alibaba-fastjson-remote-code-execution-via-autotype-jndi)
- [Improper Input Validation in alilibaba:fastjson](https://junglewise.ai/threats/cve-2017-18349-improper-input-validation-in-alilibaba-fastjson)
