CVE-2021-22095
JSON

6.5medium

Deserialization of Untrusted Data in Spring AMQP

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
1.05% (higher than 65% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-945q-ch46-pchg

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

Affected

Product or packageVersionsReported by
Spring AMQPSpring AMQP versions 2.2.X prior to 2.2.20 and 2.3.x prior to 2.3.12 .CVE List
org.springframework.amqp:spring-amqp (Maven)from 2.2.0 before 2.2.20, from 2.3.0 before 2.3.11GitHub Advisory Database
vmware spring_advanced_message_queuing_protocolfrom 2.2.0 before 2.2.19, from 2.3.0 before 2.3.11NVD

All scores

GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:N/A:P

Classification

What each source says

CVE List

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

NVD (es)

En Spring AMQP versiones 2.2.0 - 2.2.19 y 2.3.0 - 2.3.11, el objeto Spring AMQP Message, en su método toString(), crea un nuevo objeto String a partir del cuerpo del mensaje, independientemente de su tamaño. Esto puede causar un error OOM con un mensaje grande

References

Sources

SourceRecordLicence
CVE ListCVE-2021-22095 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-945q-ch46-pchg changed 2024-05-15CC-BY-4.0
NVDCVE-2021-22095 changed 2026-06-17Public domain