Vulnerability · Published Oct 28, 2021 · Assigned by vmware

CVE-2021-22097

Medium 6.5

In plain English

A medium-severity unsafe deserialization in Spring AMQP. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)1.1%top 35.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.amqp:spring-amqp2.2.19GHSA-fx7f-rjqj-52pj
Mavenorg.springframework.amqp:spring-amqp2.3.11GHSA-fx7f-rjqj-52pj

Affected products (as reported)

VendorProductVersions
n/a Spring AMQP Spring AMQP versions 2.2.X prior to 2.2.19 and 2.3.x prior to 2.3.11 .

Weakness: CWE-502

References