What’s Vulnerable › Vulnerabilities
CVE-2021-22095
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-11-30 · updated 2026-06-17
- Weakness: CWE-502
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 products
- Spring AMQP: from 2.2.0 before 2.2.19; from 2.3.0 before 2.3.11 — fixed in 2.2.19, 2.3.11
- Spring AMQP: from Spring AMQP versions 2.2.X prior through 2.2.20 and 2.3.x prior to 2.3.12 .
How to fix
Upgrade to a fixed version: Spring AMQP 2.2.19, 2.3.11. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2021-22095 or the next vulnerability affects your stack