VDB
Sign up
MEDIUM6.5

GHSA-945q-ch46-pchg

Deserialization of Untrusted Data in Spring AMQP

Quick fix

GHSA-945q-ch46-pchg — org.springframework.amqp:spring-amqp: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.2.20</version> for org.springframework.amqp:spring-amqp

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework.amqp:spring-amqp
Introduced in: 2.2.0Fixed in: 2.2.20
Fix# pom.xml: bump <version>2.2.20</version> for org.springframework.amqp:spring-amqp
Maven/org.springframework.amqp:spring-amqp
Introduced in: 2.3.0Fixed in: 2.3.11
Fix# pom.xml: bump <version>2.3.11</version> for org.springframework.amqp:spring-amqp

References