CVE-2021-22097
Deserialization of Untrusted Data in Spring AMQP
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.amqp » spring-amqp | >= 2.2.0, < 2.2.19>= 2.3.0, < 2.3.11 | 2.2.19, 2.3.11 |
Blast radius
41% of the dependent artifacts (204) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 104 |
| 2 hops | 724 |
| 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-22097 | nvd.nist.gov |
| Web | security/cve-2021-22097 | tanzu.vmware.com |
