6.5medium
Deserialization of Untrusted Data in Spring AMQP
- Severity
- 6.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.07% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-fx7f-rjqj-52pj
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
| Product or package | Versions | Reported by |
|---|---|---|
| Spring AMQP | Spring AMQP versions 2.2.X prior to 2.2.19 and 2.3.x prior to 2.3.11 . | CVE List |
| org.springframework.amqp:spring-amqp (Maven) | from 2.2.0 before 2.2.19, from 2.3.0 before 2.3.11 | GitHub Advisory Database |
| vmware spring_advanced_message_queuing_protocol | from 2.2.0 up to 2.2.18, from 2.3.0 up to 2.3.10 | NVD |
All scores
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:N/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
En Spring AMQP versiones 2.2.0 - 2.2.18 y 2.3.0 - 2.3.10, el objeto Spring AMQP Message, en su método toString(), deserializará un cuerpo para un mensaje con tipo de contenido application/x-java-serialized-object. Es posible construir un objeto java.util.Dictionary malicioso que puede causar un uso del 100% de la CPU en la aplicación si es llamado al método toString()
References
| https://tanzu.vmware.com/security/cve-2021-22097 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-22097 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22097 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fx7f-rjqj-52pj changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-22097 changed 2026-06-17 | Public domain |