{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.amqp:spring-amqp. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-22095 in the wild and no public exploit code.","fix":"Upgrade org.springframework.amqp:spring-amqp to a fixed version for your release line: 2.2.20 or 2.3.11.","what":"CVE-2021-22095 is a medium-severity denial of service vulnerability in Spring AMQP, published on 30 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22095 and fix it if it is affected.\n\nWhat it is: CVE-2021-22095 is a medium-severity denial of service vulnerability in Spring AMQP, published on 30 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22095 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.amqp:spring-amqp (Maven): affected from 2.2.0; fixed in 2.2.20\n- org.springframework.amqp:spring-amqp (Maven): affected from 2.2.0; fixed in 2.2.20\n- org.springframework.amqp:spring-amqp (Maven): affected from 2.3.0; fixed in 2.3.11\n- org.springframework.amqp:spring-amqp (Maven): affected from 2.3.0; fixed in 2.3.11\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-22095/ (Markdown: https://insights.sbomify.com/CVE-2021-22095/index.md)","id":"CVE-2021-22095","markdown":"https://insights.sbomify.com/CVE-2021-22095/index.md","name":"CVE-2021-22095","record":{"aliases":["CLSA-2026-1793133237","CLSA-2026-1793133610","CLSA-2026-1793133848","GHSA-945q-ch46-pchg","UBUNTU-CVE-2021-22095"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring AMQP library","requires_auth":"low_privilege","summary":"Attackers can cause denial of service by sending large messages that trigger out-of-memory errors in Spring AMQP applications.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_advanced_message_queuing_protocol","vendor":"vmware"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"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","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Deserialization of Untrusted Data in Spring AMQP","id":"CVE-2021-22095","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":4,"n_references":1,"next":{"headline":"Improper Output Neutralization for Logs in Spring Framework","id":"CVE-2021-22096"},"packages":[{"ecosystem":"Maven","fixed":["2.2.20"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":null,"source":"GHSA-945q-ch46-pchg"},{"ecosystem":"Maven","fixed":["2.2.20"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":"pkg:maven/org.springframework.amqp/spring-amqp","source":"GHSA-945q-ch46-pchg"},{"ecosystem":"Maven","fixed":["2.3.11"],"introduced":["2.3.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":null,"source":"GHSA-945q-ch46-pchg"},{"ecosystem":"Maven","fixed":["2.3.11"],"introduced":["2.3.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":"pkg:maven/org.springframework.amqp/spring-amqp","source":"GHSA-945q-ch46-pchg"}],"prev":{"headline":"Log entry injection in Spring Framework","id":"CVE-2021-22060"},"products":["Spring AMQP"],"published":"2021-11-30","related":[{"cvss_score":6.8,"headline":"Log4j2 AmqpAppender disables TLS hostname verification by default","id":"CVE-2026-59272","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.6,"headline":"Deserialization in Spring AMQP","id":"CVE-2026-59275","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.5,"headline":"In Spring AMQP the link credit never replenished on listener exception path","id":"CVE-2026-59320","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.5,"headline":"Unbounded decompression of attacker-supplied compressed message bodies","id":"CVE-2026-47860","kev_date_added":null,"published":"2026-08-26"},{"cvss_score":6.5,"headline":"Deserialization of Untrusted Data in Spring AMQP","id":"CVE-2021-22097","kev_date_added":null,"published":"2021-10-28"},{"cvss_score":5.3,"headline":"Admin password disclosed in BrokerNotAliveException message","id":"CVE-2026-59271","kev_date_added":null,"published":"2026-08-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can cause denial of service by sending large messages that trigger out-of-memory errors in Spring AMQP applications.","url":"https://insights.sbomify.com/CVE-2021-22095/"}