{"id":"GHSA-945q-ch46-pchg","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","aliases":["CVE-2021-22095"],"modified":"2024-05-15T23:27:54.320894Z","published":"2021-12-01T00:00:40Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-06-22T18:29:35Z","nvd_published_at":"2021-11-30T19:15:00Z","cwe_ids":["CWE-502"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22095"},{"type":"WEB","url":"https://github.com/spring-projects/spring-amqp/commit/bde294d62a8b7f3f1d5a9f50f862c6f0782efb9d"},{"type":"WEB","url":"https://tanzu.vmware.com/security/cve-2021-22097"}],"affected":[{"package":{"name":"org.springframework.amqp:spring-amqp","ecosystem":"Maven","purl":"pkg:maven/org.springframework.amqp/spring-amqp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"fixed":"2.2.20"}]}],"versions":["2.2.0.RELEASE","2.2.1.RELEASE","2.2.10.RELEASE","2.2.11.RELEASE","2.2.12.RELEASE","2.2.13.RELEASE","2.2.14.RELEASE","2.2.15.RELEASE","2.2.16.RELEASE","2.2.17.RELEASE","2.2.18.RELEASE","2.2.19.RELEASE","2.2.2.RELEASE","2.2.3.RELEASE","2.2.4.RELEASE","2.2.5.RELEASE","2.2.6.RELEASE","2.2.7.RELEASE","2.2.8.RELEASE","2.2.9.RELEASE"],"database_specific":{"last_known_affected_version_range":"\u003c= 2.2.19","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-945q-ch46-pchg/GHSA-945q-ch46-pchg.json"}},{"package":{"name":"org.springframework.amqp:spring-amqp","ecosystem":"Maven","purl":"pkg:maven/org.springframework.amqp/spring-amqp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.3.11"}]}],"versions":["2.3.0","2.3.1","2.3.10","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 2.3.10","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-945q-ch46-pchg/GHSA-945q-ch46-pchg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}