CVE-2021-22097
Java vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-22097 was discovered in Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, affecting the Spring AMQP Message object's toString() method. The vulnerability was disclosed on October 26, 2021, and involves the deserialization of message bodies with content type application/x-java-serialized-object, where classes in java.lang and java.util packages are trusted (Spring Security).

Technical details

The vulnerability exists in the toString() method of the Spring AMQP Message object, which deserializes message bodies with content type application/x-java-serialized-object. The issue allows for the construction of a malicious java.util.Dictionary object that can trigger 100% CPU usage when the toString() method is called. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause a denial of service condition by consuming 100% CPU usage in the application when the toString() method is called on a maliciously crafted message. The attack requires the attacker to have privileges to directly publish messages to the RabbitMQ server (Spring Security).

Exploitability

The vulnerability requires an attacker to have privileges to directly publish messages with malicious content to the RabbitMQ server. The exploitation involves crafting a specific java.util.Dictionary object that triggers the high CPU usage condition (Spring Security).

Mitigation and workarounds

Users of affected versions should upgrade to Spring AMQP version 2.3.11 for 2.3.x users or version 2.2.19 for 2.2.x users. Additionally, it is recommended not to allow untrustworthy actors to publish arbitrary data to RabbitMQ. The vulnerability has been fixed in Spring AMQP versions 2.3.11 and 2.2.19 (Spring Security).

Community reactions

The vulnerability was identified and responsibly reported by r00t4dm Cloud-Penetrating Arrow Lab of Meituan Corp Information Security Department (Spring Security).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-76904CRITICAL9.8
  • Java logoJava
  • org.geotools.jdbc:gt-jdbc-postgis
NoYesAug 21, 2026
GHSA-mqjf-5f49-2fjhCRITICAL9.8
  • Java logoJava
  • org.geotools:gt-jdbc-postgis
NoYesAug 21, 2026
CVE-2026-54049HIGH8.7
  • Java logoJava
  • org.sakaiproject.conversations:sakai-conversations-impl
NoNoAug 24, 2026
CVE-2026-63202HIGH7.5
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-54050MEDIUM6.5
  • Java logoJava
  • org.sakaiproject.profile2:profile2-api
NoYesAug 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management