MODERATE 6.5

CVE-2021-22095

Deserialization of Untrusted Data in Spring AMQP

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.amqp » spring-amqp
>= 2.2.0, < 2.2.20>= 2.3.0, < 2.3.11
2.2.20, 2.3.11

Blast radius

1affected artifacts
31affected versions
491dependent artifacts (est.)
8,025dependent versions

41% of the dependent artifacts (204) still pull an affected version in their latest release.

DepthDependent versions
Direct
105
2 hops
725
3 hops
2,602
4 hops
2,178
5 hops
1,580
6 hops
835

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Webgithub.com
Webtanzu.vmware.com