# CVE-2021-22095: Deserialization of Untrusted Data in Spring AMQP

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-11-30T18:41:35.000Z
- Modified: 2026-06-17T03:36:37.557Z
- Also known as: GHSA-945q-ch46-pchg
- Weaknesses: CWE-502
- Assigned by: vmware

## 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

(As written by CVE List.)

## Affected

- Spring AMQP: Spring AMQP versions 2.2.X prior to 2.2.20 and 2.3.x prior to 2.3.12 .
- org.springframework.amqp:spring-amqp (Maven): from 2.2.0 before 2.2.20; from 2.3.0 before 2.3.11
- vmware spring_advanced_message_queuing_protocol: from 2.2.0 before 2.2.19; from 2.3.0 before 2.3.11

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://tanzu.vmware.com/security/cve-2021-22097> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22095> (advisory)
- <https://github.com/spring-projects/spring-amqp/commit/bde294d62a8b7f3f1d5a9f50f862c6f0782efb9d> (web)

## Sources

- CVE List: [CVE-2021-22095](https://www.cve.org/CVERecord?id=CVE-2021-22095), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-945q-ch46-pchg](https://github.com/advisories/GHSA-945q-ch46-pchg), CC-BY-4.0, modified 2024-05-15
- NVD: [CVE-2021-22095](https://nvd.nist.gov/vuln/detail/CVE-2021-22095), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22095 · Whole record: https://cve.day/CVE-2021-22095.json · Rebuilt by cve.day 2026-11-25T22:58:05.781Z
