Vulnerability · Published Nov 30, 2021 · Assigned by vmware

CVE-2021-22095

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.5% 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.19 and 2.3.0 - 2.3.11, the Spring AMQP Message object, in its toString() method, will create a new String object from the message body, regardless of its size. This can cause an OOM Error with a large message

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.amqp:spring-amqp2.2.20GHSA-945q-ch46-pchg
Mavenorg.springframework.amqp:spring-amqp2.3.11GHSA-945q-ch46-pchg
Ubuntu:22.04:LTSspringno fix listedUBUNTU-CVE-2021-22095
Ubuntu:24.04:LTSspringno fix listedUBUNTU-CVE-2021-22095
Ubuntu:25.10springno fix listedUBUNTU-CVE-2021-22095
Ubuntu:26.04:LTSspringno fix listedUBUNTU-CVE-2021-22095
Ubuntu:26.10springno fix listedUBUNTU-CVE-2021-22095

Affected products (as reported)

VendorProductVersions
n/a Spring AMQP Spring AMQP versions 2.2.X prior to 2.2.20 and 2.3.x prior to 2.3.12 .

Weakness: CWE-502

References