CVE-2021-22095: Medium severity spring amqp vulnerability

Published Nov 30, 2021
·
Updated

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 Software

4 affected componentsFixes available
maven/org.springframework.amqp:spring-amqp>=2.2.0<=2.2.19
2.2.20
maven/org.springframework.amqp:spring-amqp>=2.3.0<=2.3.10
2.3.11
VMware Spring Advanced Message Queuing Protocol>=2.2.0<2.2.19
VMware Spring Advanced Message Queuing Protocol>=2.3.0<2.3.11

Event History

Nov 30, 2021
CVE Published
via MITRE·06:41 PM
Data Sourced
via MITRE·06:41 PM
DescriptionWeakness
Dec 1, 2021
Advisory Published
via GitHub·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-22095?

CVE-2021-22095 is a vulnerability in Spring AMQP versions 2.2.0 - 2.2.19 and 2.3.0 - 2.3.11 that can cause an OOM Error with a large message.

2

How does CVE-2021-22095 affect Spring AMQP?

CVE-2021-22095 affects Spring AMQP by causing an Out-of-Memory (OOM) error when the toString() method creates a new String object from the message body, regardless of its size.

3

What is the severity of CVE-2021-22095?

The severity of CVE-2021-22095 is medium with a severity value of 6.5.

4

Which software versions are affected by CVE-2021-22095?

CVE-2021-22095 affects Spring AMQP versions 2.2.0 - 2.2.19 and 2.3.0 - 2.3.11.

5

How can I fix CVE-2021-22095?

To fix CVE-2021-22095, update Spring AMQP to a version higher than 2.3.11 or 2.2.19, depending on the affected version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203