CVE-2021-22095
MEDIUM 6.5CVSS 3.1Deserialization of Untrusted Data in Spring AMQP
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
- Published
- 30 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security@vmware.com
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-945q-ch46-pchg
- Sources
- NVDJSONOSV GHSA-945q-ch46-pchgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vmware | spring_advanced_message_queuing_protocolcpe:2.3:a:vmware:spring_advanced_message_queuing_protocol:*:*:*:*:*:*:*:* |
>= 2.2.0, < 2.2.19 | 2.2.19 |
| NVD | vmware | spring_advanced_message_queuing_protocolcpe:2.3:a:vmware:spring_advanced_message_queuing_protocol:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.3.11 | 2.3.11 |
| OSV | Maven | org.springframework.amqp:spring-amqp | >= 2.2.0, < 2.2.20 | 2.2.20 |
| OSV | Maven | org.springframework.amqp:spring-amqp | >= 2.3.0, < 2.3.11 | 2.3.11 |
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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Nov 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Dec 2021)