Skip to content
Fencer Vulns
medium 6.5

CVE-2021-22095 json

Deserialization of Untrusted Data in Spring AMQP

published 2021-11-30 4 y ago modified 2026-06-17 4 mo ago also GHSA-945q-ch46-pchg , EUVD-2021-2489

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 64%
public exploits
0
none known

Summary

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

Patch / fix

  • maven org.springframework.amqp:spring-amqp 2.2.20, 2.3.11
  • vmware spring_advanced_message_queuing_protocol 2.2.19, 2.3.11

Exploit prediction

1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
maven org.springframework.amqp:spring-amqp
>=2.2.0, <2.2.20
>=2.3.0, <2.3.11
2.2.20
2.3.11

Affected products

  • n/a Spring AMQP

Classification

Weakness
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.