# CVE-2021-22095

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-11-30 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-22095, GHSA-945q-ch46-pchg
- Record: https://cvemate.com/vulnerability/CVE-2021-22095 · JSON: https://cvemate.com/vulnerability/CVE-2021-22095/json

## Description

```text
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
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.052%, percentile 65.448%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu spring (Ubuntu): All versions (No fix recorded)
- org.springframework.amqp spring-amqp (Maven): ≥ 2.2.0, \< 2.2.20 \| ≥ 2.3.0, \< 2.3.11
- vmware spring\_advanced\_message\_queuing\_protocol: ≥ 2.2.0, \< 2.2.19 \| ≥ 2.3.0, \< 2.3.11

## References

- <https://tanzu.vmware.com/security/cve-2021-22097>
- <https://ubuntu.com/security/CVE-2021-22095>
- <https://www.cve.org/CVERecord?id=CVE-2021-22095>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22095>
- <https://github.com/spring-projects/spring-amqp/commit/bde294d62a8b7f3f1d5a9f50f862c6f0782efb9d>

---

Data as of 2026-12-05T04:45:17.873Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
