Every CVE Search/ Get API key

CVE-2021-22097

Deserialization of Untrusted Data in Spring AMQP

6.5 MediumFix available

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.07%Up 0.7 points since Oct 29, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Record
CVE-2021-22097
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
6.8 MediumAV:N/AC:L/Au:S/C:N/I:N/A:C
Weakness
CWE-502
Updated
2026-11-02
CVE List No score

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Record
CVE-2021-22097
Weakness
CWE-502
Updated
2026-11-02
EUVDEUVD-2022-3851 No score

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Record
EUVD-2022-3851
Updated
2026-11-03
GitHub AdvisoriesGHSA-fx7f-rjqj-52pj 6.5

Deserialization of Untrusted Data in Spring AMQP

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Record
GHSA-fx7f-rjqj-52pj
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-502
Updated
2026-11-02
OSV 6.5

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Record
CVE-2021-22097
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVGHSA-fx7f-rjqj-52pj 6.5

Deserialization of Untrusted Data in Spring AMQP

In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.

Record
GHSA-fx7f-rjqj-52pj
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-502
Updated
2026-11-02
Show 6 moreShow less
OSVCLSA-2026-1785380226 No score

TuxCare security update for org.springframework.amqp:spring-amqp (2 CVEs)

TuxCare rebuilt org.springframework.amqp:spring-amqp to address 2 CVEs. Fixed in 2.1.8.RELEASE-tuxcare.1.

Record
CLSA-2026-1785380226
Updated
2026-11-02
OSVCLSA-2026-1789453747 No score

TuxCare security update for org.springframework.amqp:spring-amqp (1 CVE)

TuxCare rebuilt org.springframework.amqp:spring-amqp to address 1 CVE. Fixed in 2.3.7-tuxcare.1.

Record
CLSA-2026-1789453747
Updated
2026-11-02
OSVCLSA-2026-1792077747 No score

TuxCare security update for org.springframework.amqp (4 CVEs)

TuxCare rebuilt 2 org.springframework.amqp packages to address 4 CVEs. Fixed in 2.3.10-tuxcare.1.

Record
CLSA-2026-1792077747
Updated
2026-11-02
OSVCLSA-2026-1792077762 No score

TuxCare security update for org.springframework.amqp (4 CVEs)

TuxCare rebuilt 2 org.springframework.amqp packages to address 4 CVEs. Fixed in 2.3.6-tuxcare.1.

Record
CLSA-2026-1792077762
Updated
2026-11-02
OSVCLSA-2026-1793717727 No score

TuxCare security update for org.springframework.amqp:spring-amqp (1 CVE)

TuxCare rebuilt org.springframework.amqp:spring-amqp to address 1 CVE. Fixed in 2.2.12.RELEASE-tuxcare.3.

Record
CLSA-2026-1793717727
Updated
2026-11-03
OSVCLSA-2026-1793958058 No score

TuxCare security update for org.springframework.amqp:spring-amqp (1 CVE)

TuxCare rebuilt org.springframework.amqp:spring-amqp to address 1 CVE. Fixed in 1.7.14.RELEASE-tuxcare.2.

Record
CLSA-2026-1793958058
Updated
2026-11-06

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.amqp:spring-amqp
Maven
2.2.0 to 2.2.18
2.2.19
org.springframework.amqp:spring-amqp
Maven
2.3.0 to 2.3.10
2.3.11
org.springframework.amqp:spring-amqp
TuxCare:Maven
From an advisory covering 2 CVEs
2.1.8.RELEASE up to 2.1.8.RELEASE-tuxcare.1
2.1.8.RELEASE-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
2.3.7 up to 2.3.7-tuxcare.1
2.3.7-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
From an advisory covering 4 CVEs
2.3.10 up to 2.3.10-tuxcare.1
2.3.10-tuxcare.1
org.springframework.amqp:spring-rabbit
TuxCare:Maven
From an advisory covering 4 CVEs
2.3.10 up to 2.3.10-tuxcare.1
2.3.10-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
From an advisory covering 4 CVEs
2.3.6 up to 2.3.6-tuxcare.1
2.3.6-tuxcare.1
org.springframework.amqp:spring-rabbit
TuxCare:Maven
From an advisory covering 4 CVEs
2.3.6 up to 2.3.6-tuxcare.1
2.3.6-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
2.2.12.RELEASE up to 2.2.12.RELEASE-tuxcare.3, plus listed versions
2.2.12.RELEASE-tuxcare.12.2.12.RELEASE-tuxcare.2
2.2.12.RELEASE-tuxcare.3
org.springframework.amqp:spring-amqp
TuxCare:Maven
1.7.14.RELEASE up to 1.7.14.RELEASE-tuxcare.2, plus listed versions
1.7.14.RELEASE-tuxcare.1
1.7.14.RELEASE-tuxcare.2
org.springframework.amqp:spring-amqp
Maven
2.2.0 up to 2.2.19, plus listed versions
2.2.0.RELEASE2.2.1.RELEASE2.2.10.RELEASE2.2.11.RELEASE2.2.12.RELEASE
Show 14 moreShow less
2.2.13.RELEASE2.2.14.RELEASE2.2.15.RELEASE2.2.16.RELEASE2.2.17.RELEASE2.2.18.RELEASE2.2.2.RELEASE2.2.3.RELEASE2.2.4.RELEASE2.2.5.RELEASE2.2.6.RELEASE2.2.7.RELEASE2.2.8.RELEASE2.2.9.RELEASE
2.2.19
org.springframework.amqp:spring-amqp
Maven
2.3.0 up to 2.3.11, plus listed versions
2.3.12.3.102.3.22.3.32.3.4
Show 5 moreShow less
2.3.52.3.62.3.72.3.82.3.9
2.3.11

History

History
RecordedChangedSources
affected, aliasesOSV
affected
affected, aliases, factsOSV
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-22097 is a medium vulnerability (CVSS 6.5) in Spring Amqp, published October 28, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.07%, the 65th percentile. Fixed in org.springframework.amqp:spring-amqp 2.2.19.

References

MoveEnter Open