Every CVE Search/ Get API key

CVE-2021-22095

Deserialization of Untrusted Data in Spring AMQP

6.5 MediumFix available

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

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.05%Up 0.6 points since Dec 1, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

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

Record
CVE-2021-22095
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
4.0 MediumAV:N/AC:L/Au:S/C:N/I:N/A:P
Weakness
CWE-502
Updated
2026-11-02
CVE List No score

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

Record
CVE-2021-22095
Weakness
CWE-502
Updated
2026-11-02
EUVDEUVD-2021-2489 No score

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

Record
EUVD-2021-2489
Updated
2026-11-03
GitHub AdvisoriesGHSA-945q-ch46-pchg 6.5

Deserialization of Untrusted Data in Spring AMQP

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

Record
GHSA-945q-ch46-pchg
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.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

Record
CVE-2021-22095
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-945q-ch46-pchg 6.5

Deserialization of Untrusted Data in Spring AMQP

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

Record
GHSA-945q-ch46-pchg
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 9 moreShow less
OSVUBUNTU-CVE-2021-22095 6.5

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

Record
UBUNTU-CVE-2021-22095
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
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-1792084967 No score

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

TuxCare rebuilt 2 org.springframework.amqp packages to address 3 CVEs. Fixed in 2.1.4.RELEASE-tuxcare.1.

Record
CLSA-2026-1792084967
Updated
2026-11-02
OSVCLSA-2026-1792088148 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.2.12.RELEASE-tuxcare.1.

Record
CLSA-2026-1792088148
Updated
2026-11-02
OSVCLSA-2026-1793133237 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.5.

Record
CLSA-2026-1793133237
Updated
2026-11-02
OSVCLSA-2026-1793133610 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.10-tuxcare.3.

Record
CLSA-2026-1793133610
Updated
2026-11-02
OSVCLSA-2026-1793133848 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.6-tuxcare.3.

Record
CLSA-2026-1793133848
Updated
2026-11-02
OSVCLSA-2026-1793186202 No score

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

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

Record
CLSA-2026-1793186202
Updated
2026-11-02
OSVCLSA-2026-1793186461 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.1.17.RELEASE-tuxcare.1.

Record
CLSA-2026-1793186461
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.amqp:spring-amqp
Maven
2.3.0 to 2.3.10
2.3.11
org.springframework.amqp:spring-amqp
Maven
2.2.0 to 2.2.19
2.2.20
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
From an advisory covering 3 CVEs
2.1.4.RELEASE up to 2.1.4.RELEASE-tuxcare.1
2.1.4.RELEASE-tuxcare.1
org.springframework.amqp:spring-rabbit
TuxCare:Maven
From an advisory covering 3 CVEs
2.1.4.RELEASE up to 2.1.4.RELEASE-tuxcare.1
2.1.4.RELEASE-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
From an advisory covering 4 CVEs
2.2.12.RELEASE up to 2.2.12.RELEASE-tuxcare.1
2.2.12.RELEASE-tuxcare.1
org.springframework.amqp:spring-rabbit
TuxCare:Maven
From an advisory covering 4 CVEs
2.2.12.RELEASE up to 2.2.12.RELEASE-tuxcare.1
2.2.12.RELEASE-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
2.3.7 up to 2.3.7-tuxcare.5, plus listed versions
2.3.7-tuxcare.12.3.7-tuxcare.22.3.7-tuxcare.32.3.7-tuxcare.4
2.3.7-tuxcare.5
org.springframework.amqp:spring-amqp
TuxCare:Maven
2.3.10 up to 2.3.10-tuxcare.3, plus listed versions
2.3.10-tuxcare.12.3.10-tuxcare.2
2.3.10-tuxcare.3
org.springframework.amqp:spring-amqp
TuxCare:Maven
2.3.6 up to 2.3.6-tuxcare.3, plus listed versions
2.3.6-tuxcare.12.3.6-tuxcare.2
2.3.6-tuxcare.3
Show 13 moreShow less
Affected packages
PackageAffectedFixed
org.springframework.amqp:spring-amqp
TuxCare:Maven
From an advisory covering 3 CVEs
1.7.14.RELEASE up to 1.7.14.RELEASE-tuxcare.1
1.7.14.RELEASE-tuxcare.1
org.springframework.amqp:spring-amqp
TuxCare:Maven
From an advisory covering 4 CVEs
2.1.17.RELEASE up to 2.1.17.RELEASE-tuxcare.1
2.1.17.RELEASE-tuxcare.1
org.springframework.amqp:spring-rabbit
TuxCare:Maven
From an advisory covering 4 CVEs
2.1.17.RELEASE up to 2.1.17.RELEASE-tuxcare.1
2.1.17.RELEASE-tuxcare.1
org.springframework.amqp:spring-amqp
Maven
2.2.0 up to 2.2.20, plus listed versions
2.2.0.RELEASE2.2.1.RELEASE2.2.10.RELEASE2.2.11.RELEASE2.2.12.RELEASE
Show 15 moreShow less
2.2.13.RELEASE2.2.14.RELEASE2.2.15.RELEASE2.2.16.RELEASE2.2.17.RELEASE2.2.18.RELEASE2.2.19.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.20
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
spring
Ubuntu:16.04:LTS
All versions, plus listed versions
100.0+dfsg-2100.0+dfsg-2build1
None known
spring
Ubuntu:18.04:LTS
All versions, plus listed versions
103.0+dfsg2-1103.0+dfsg2-1build1104.0+dfsg-2
None known
spring
Ubuntu:20.04:LTS
All versions, plus listed versions
104.0+dfsg-3build2104.0+dfsg-4ubuntu1104.0+dfsg-4ubuntu2104.0+dfsg-4ubuntu5104.0+dfsg-4ubuntu6104.0+dfsg-4ubuntu7
None known
spring
Ubuntu:22.04:LTS
All versions, plus listed versions
105.0.1+dfsg-2105.0.1+dfsg-3ubuntu1105.0.1+dfsg-3ubuntu2105.0.1+dfsg-4
None known
spring
Ubuntu:24.04:LTS
All versions, plus listed versions
106.0+dfsg-2106.0+dfsg-3106.0+dfsg-3build2106.0+dfsg-3build3
None known
spring
Ubuntu:25.10
All versions, plus listed versions
106.0+dfsg-4
None known
spring
Ubuntu:26.10
All versions, plus listed versions
106.0+dfsg-4106.0+dfsg-5
None known
spring
Ubuntu:26.04:LTS
All versions, plus listed versions
106.0+dfsg-4
None known

History

History
RecordedChangedSources
affected, facts
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-22095 is a medium vulnerability (CVSS 6.5) in Spring Amqp, published November 30, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.05%, the 64th percentile. Fixed in org.springframework.amqp:spring-amqp 2.3.11.

References

MoveEnter Open