Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-22095 EUVD-2021-2489GHSA-945q-ch46-pchg

Deserialization of Untrusted Data in Spring AMQP

Published Nov 30, 2021 · Updated Aug 3, 2024 · Assigned by vmware

Description

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 products

VendorProductAffectedFixed
— Spring AMQP Spring AMQP versions 2.2.X prior to 2.2.20 and 2.3.x prior to 2.3.12 . —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 spring No fix yet —
Ubuntu 26.04 LTS spring No fix yet —
Ubuntu 25.10 spring No fix yet —
Ubuntu 24.04 LTS spring No fix yet —
Ubuntu 22.04 LTS spring No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS spring No fix yet —
Ubuntu 18.04 LTS spring No fix yet —
Ubuntu 16.04 LTS spring No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.amqp:spring-amqp >= 2.2.0, < 2.2.20 2.2.20 GHSA-945q-ch46-pchg
Maven org.springframework.amqp:spring-amqp >= 2.3.0, < 2.3.11 2.3.11 GHSA-945q-ch46-pchg

References