{"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-22097 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.19 or 2.3.11.","what":"CVE-2021-22097 is a medium-severity denial of service vulnerability in Spring AMQP, published on 28 Oct 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-22097 and fix it if it is affected.\n\nWhat it is: CVE-2021-22097 is a medium-severity denial of service vulnerability in Spring AMQP, published on 28 Oct 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-22097 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.19\n- org.springframework.amqp:spring-amqp (Maven): affected from 2.2.0; fixed in 2.2.19\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-22097/ (Markdown: https://insights.sbomify.com/CVE-2021-22097/index.md)","id":"CVE-2021-22097","markdown":"https://insights.sbomify.com/CVE-2021-22097/index.md","name":"CVE-2021-22097","record":{"aliases":["CLSA-2026-1789453747","GHSA-fx7f-rjqj-52pj"],"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 100% CPU usage and denial of service by triggering the toString method on malicious serialized messages in Spring AMQP.","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.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.","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-22097","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":"Open redirect in UAA server","id":"CVE-2021-22098"},"packages":[{"ecosystem":"Maven","fixed":["2.2.19"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":null,"source":"GHSA-fx7f-rjqj-52pj"},{"ecosystem":"Maven","fixed":["2.2.19"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":"pkg:maven/org.springframework.amqp/spring-amqp","source":"GHSA-fx7f-rjqj-52pj"},{"ecosystem":"Maven","fixed":["2.3.11"],"introduced":["2.3.0"],"last_affected":[],"package":"org.springframework.amqp:spring-amqp","purl":null,"source":"GHSA-fx7f-rjqj-52pj"},{"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-fx7f-rjqj-52pj"}],"prev":{"headline":"Improper Output Neutralization for Logs in Spring Framework","id":"CVE-2021-22096"},"products":["Spring AMQP"],"published":"2021-10-28","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-22095","kev_date_added":null,"published":"2021-11-30"},{"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 100% CPU usage and denial of service by triggering the toString method on malicious serialized messages in Spring AMQP.","url":"https://insights.sbomify.com/CVE-2021-22097/"}