{"id":"CVE-2021-22095","aliases":["GHSA-945q-ch46-pchg"],"url":"https://o3.security/vulnerability/CVE-2021-22095","summary":"Deserialization of Untrusted Data in Spring AMQP","details":"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","published":"2021-11-30T19:15:08.610Z","modified":"2026-07-08T22:15:04.791743Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.01019,"percentile":0.60258,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.springframework.amqp:spring-amqp","fixedVersion":"2.2.20"},{"ecosystem":"Maven","name":"org.springframework.amqp:spring-amqp","fixedVersion":"2.3.11"}],"fix":{"url":"https://github.com/spring-projects/spring-amqp/commit/bde294d62a8b7f3f1d5a9f50f862c6f0782efb9d","label":"spring-projects/spring-amqp@bde294d"},"references":[{"type":"ADVISORY","url":"https://tanzu.vmware.com/security/cve-2021-22097"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22095"},{"type":"WEB","url":"https://github.com/spring-projects/spring-amqp/commit/bde294d62a8b7f3f1d5a9f50f862c6f0782efb9d"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T22:15:04.791743Z"}}