CVE-2021-22095

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

Severity
MEDIUM
CVSS v3
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H · source nvd
Exploit chance (EPSS)
1.052%
chance of exploitation in the next 30 days
higher than 64.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-11-30Published by the CNA18:41 UTC
  2. 2021-12-01GitHub advisory published (GHSA-945q-ch46-pchg)1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-945q-ch46-pchg, affected packages:

PackageVulnerable versionsFixed in
Maven org.springframework.amqp:spring-amqpfrom 2.2.0 before 2.2.202.2.20
Maven org.springframework.amqp:spring-amqpfrom 2.3.0 before 2.3.112.3.11

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
vmware spring_advanced_message_queuing_protocolfrom 2.2.0 before 2.2.19fixed in 2.2.19from 2.3.0 before 2.3.11fixed in 2.3.112.2.192.3.11

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources