VDB
Sign up
MEDIUM6.5

GHSA-fx7f-rjqj-52pj

Deserialization of Untrusted Data in Spring AMQP

Quick fix

GHSA-fx7f-rjqj-52pj — org.springframework.amqp:spring-amqp: upgrade to the fixed version with the command below.

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

Details

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.

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.19
Fix# pom.xml: bump <version>2.2.19</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