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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.amqp:spring-amqp | 2.2.20 | GHSA-945q-ch46-pchg |
| Maven | org.springframework.amqp:spring-amqp | 2.3.11 | GHSA-945q-ch46-pchg |
| Ubuntu:22.04:LTS | spring | no fix listed | UBUNTU-CVE-2021-22095 |
| Ubuntu:24.04:LTS | spring | no fix listed | UBUNTU-CVE-2021-22095 |
| Ubuntu:25.10 | spring | no fix listed | UBUNTU-CVE-2021-22095 |
| Ubuntu:26.04:LTS | spring | no fix listed | UBUNTU-CVE-2021-22095 |
| Ubuntu:26.10 | spring | no fix listed | UBUNTU-CVE-2021-22095 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://tanzu.vmware.com/security/cve-2021-22097 x_refsource_MISC