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)
| Artifact | Affected versions | Fixed 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.
| Depth | Dependent versions |
|---|---|
| Direct | 105 |
| 2 hops | 725 |
| 3 hops | 2,602 |
| 4 hops | 2,178 |
| 5 hops | 1,580 |
| 6 hops | 835 |
Most used dependents
- org.springframework.boot » spring-boot-starter-amqp691 usages
- org.springframework.amqp » spring-rabbit405 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.springframework.cloud » spring-cloud-starter-stream-rabbit236 usages
- org.springframework.cloud » spring-cloud-stream-binder-rabbit181 usages
- org.apache.camel » camel-catalog87 usages
- org.springframework.integration » spring-integration-amqp80 usages
- org.springframework.amqp » spring-rabbit-test55 usages
- com.tencent.bk.devops.ci.common » common-web45 usages
- org.gbif.registry » registry-ws-client26 usages
- be.milieuinfo.bsos » bsos-infrastructure17 usages
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
- org.gbif.checklistbank » checklistbank-common13 usages
- com.evolveum.midpoint.model » model-impl13 usages
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
| Advisory | NVD CVE-2021-22095 | nvd.nist.gov |
| Web | spring-projects/spring-amqp commit bde294d | github.com |
| Web | security/cve-2021-22097 | tanzu.vmware.com |
