# CVE-2021-22097: Deserialization of Untrusted Data in Spring AMQP

Source: https://junglewise.ai/threats/cve-2021-22097-deserialization-of-untrusted-data-in-spring-amqp  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-24  
License: CC BY 4.0 with a link back

CVE-2021-22097 · Severity: low · CVSS 3.1 · Published 2022-05-24

Deserialization of Untrusted Data in Spring AMQP

Technologies: [org.springframework.amqp:spring-amqp (Maven)](https://junglewise.ai/threats/technologies/org-springframework-amqp-spring-amqp). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

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

**How severe is CVE-2021-22097?** Low severity, with a CVSS score of 3.1, published 24 May 2022.

**Which products and versions are affected?** org.springframework.amqp:spring-amqp (Maven) ECOSYSTEM:introduced=2.2.0,fixed=2.2.19.

**Is there a fix for CVE-2021-22097?** Yes. org.springframework.amqp:spring-amqp (Maven): upgrade to 2.2.19 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-22097?** Check whether you run org.springframework.amqp:spring-amqp (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

- org.springframework.amqp:spring-amqp (Maven): upgrade to 2.2.19 or later

  ```sh
  # set org.springframework.amqp:spring-amqp to 2.2.19 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework.amqp:spring-amqp (Maven) ECOSYSTEM:introduced=2.2.0,fixed=2.2.19

## Identifiers

- CVE-2021-22097
- GHSA-fx7f-rjqj-52pj

## Related threats

- [VMware Spring AMQP improper certificate validation in RabbitConnectionFactoryBean](https://junglewise.ai/threats/cve-2026-41714-vmware-spring-amqp-improper-certificate-validation-in)
- [VMware Spring AMQP predictable Correlation IDs in RabbitTemplate](https://junglewise.ai/threats/cve-2026-41701-vmware-spring-amqp-predictable-correlation-ids-in-rabbittemplate)
- [Deserialization of Untrusted Data in Spring AMQP](https://junglewise.ai/threats/cve-2017-8045-deserialization-of-untrusted-data-in-spring-amqp)
- [Improper Input Validation in Spring AMQP](https://junglewise.ai/threats/cve-2016-2173-improper-input-validation-in-spring-amqp)
- [Deserialization of Untrusted Data in Spring AMQP](https://junglewise.ai/threats/cve-2021-22095-deserialization-of-untrusted-data-in-spring-amqp)
