MediumGHSA-945q-ch46-pchgCVE-2021-22095

Deserialization of Untrusted Data in Spring AMQP

Published 1 Dec 2021 · Updated 15 May 2024

Is your project on an affected org.springframework.amqp:spring-amqp?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.2.0 <2.2.20
Fixed in
2.2.20
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.amqp:spring-amqp -DdepVersion=2.2.20 -DforceVersion=true
Affected
>=2.3.0 <2.3.11
Fixed in
2.3.11
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.amqp:spring-amqp -DdepVersion=2.3.11 -DforceVersion=true

Details

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

Is GHSA-945q-ch46-pchg in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework.amqp:spring-amqp, and gives you the command that fixes it.

More advisories for org.springframework.amqp:spring-amqp

  • MediumCVE-2026-41701Spring AMQP Has Predictable Correlation IDs in RabbitTemplate.sendAndReceive() with Fixed Reply Queue · 10 Jun 2026
  • MediumCVE-2026-41714Spring AMQP Core: Missing Certificate and Hostname Verification for amqps URIs in RabbitConnectionFactoryBean · 10 Jun 2026
  • MediumCVE-2021-22097Deserialization of Untrusted Data in Spring AMQP · 24 May 2022
  • CriticalCVE-2017-8045Deserialization of Untrusted Data in Spring AMQP · 17 May 2022
  • CriticalCVE-2016-2173Improper Input Validation in Spring AMQP · 13 May 2022
  • MediumCVE-2018-11087Moderate severity vulnerability that affects com.rabbitmq:amqp-client and org.springframework.amqp:spring-amqp · 18 Oct 2018
org.springframework.amqp:spring-amqp security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.