{"answers":{"affected":"3 open source packages ship an affected version, including activemq and com.thoughtworks.xstream:xstream. It affects 13 products.","exploited":"There is no known exploitation of CVE-2021-21341 in the wild and no public exploit code.","fix":"Upgrade activemq to 5.15.14 or later.","what":"CVE-2021-21341 is a high-severity denial of service vulnerability in Apache Activemq, published on 22 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21341 and fix it if it is affected.\n\nWhat it is: CVE-2021-21341 is a high-severity denial of service vulnerability in Apache Activemq, published on 22 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21341 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- activemq (Bitnami): affected all versions up to 5.16.0; fixed in 5.15.14\n- com.thoughtworks.xstream:xstream (Maven): affected all versions; fixed in 1.4.16\n- com.thoughtworks.xstream:xstream (Maven): affected all versions; fixed in 1.4.16\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-21341/ (Markdown: https://insights.sbomify.com/CVE-2021-21341/index.md)","id":"CVE-2021-21341","markdown":"https://insights.sbomify.com/CVE-2021-21341/index.md","name":"CVE-2021-21341","record":{"aliases":["BIT-activemq-2021-21341","DEBIAN-CVE-2021-21341","GHSA-2p3x-qw9c-25hh","UBUNTU-CVE-2021-21341"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java XML serialization library","requires_auth":"none","summary":"Remote attackers can cause denial of service by consuming 100% CPU via manipulated XML input in XStream library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"activemq","vendor":"apache"},{"product":"jmeter","vendor":"apache"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"oncommand_insight","vendor":"netapp"},{"product":"banking_enterprise_default_management","vendor":"oracle"},{"product":"banking_platform","vendor":"oracle"},{"product":"business_activity_monitoring","vendor":"oracle"},{"product":"communications_billing_and_revenue_management_elastic_charging_engine","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"retail_xstore_point_of_service","vendor":"oracle"},{"product":"webcenter_portal","vendor":"oracle"},{"product":"xstream","vendor":"xstream"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is vulnerability which may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service only by manipulating the processed input stream. No user is affected who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-05-09","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-05-09T06:46:38Z","kind":"github_poc","ref":"https://github.com/s-index/CVE-2021-21341","stars":0,"title":"XStream DoS CVE-2021-21341"},{"date":"2022-03-15T07:28:52Z","kind":"github_poc","ref":"https://github.com/Mani1325/ka-cve-2021-21341","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"XStream can cause a Denial of Service","id":"CVE-2021-21341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:activemq","products":["apache:activemq","debian:debian_linux","fedoraproject:fedora","netapp:oncommand_insight","oracle:banking_platform","oracle:communications_unified_inventory_management","oracle:retail_xstore_point_of_service","oracle:webcenter_portal"],"type":"denial_of_service","year":"2021"},"n_packages":3,"n_references":15,"next":{"headline":"A Server-Side Forgery Request can be activated unmarshalling with XStream to access data streams from an arbitrary URL referencing a resource in an intranet or the local host","id":"CVE-2021-21342"},"packages":[{"ecosystem":"Bitnami","fixed":["5.15.14"],"introduced":["0","5.16.0","5.16.1"],"last_affected":["5.16.0","5.16.1"],"package":"activemq","purl":"pkg:bitnami/activemq","source":"BIT-activemq-2021-21341"},{"ecosystem":"Maven","fixed":["1.4.16"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":null,"source":"GHSA-2p3x-qw9c-25hh"},{"ecosystem":"Maven","fixed":["1.4.16"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"GHSA-2p3x-qw9c-25hh"}],"prev":{"headline":"Cross-Site Scripting in Content Preview","id":"CVE-2021-21340"},"products":["xstream"],"published":"2021-03-22","related":[{"cvss_score":10,"headline":"Apache ActiveMQ Deserialization of Untrusted Data","id":"CVE-2023-46604","kev_date_added":"2023-11-02","published":"2023-10-27"},{"cvss_score":9.8,"headline":"Apache ActiveMQ Improper Input Validation","id":"CVE-2016-3088","kev_date_added":"2022-02-10","published":"2016-06-01"},{"cvss_score":8.8,"headline":"Apache ActiveMQ Improper Input Validation","id":"CVE-2026-34197","kev_date_added":"2026-04-16","published":"2026-04-07"},{"cvss_score":9.8,"headline":"Remote code execution in Apache ActiveMQ","id":"CVE-2020-11998","kev_date_added":null,"published":"2020-09-10"},{"cvss_score":9.8,"headline":"Command Injection in Xstream","id":"CVE-2013-7285","kev_date_added":null,"published":"2019-05-15"},{"cvss_score":9.8,"headline":"Improper Restriction of XML External Entity Reference in Apache ActiveMQ","id":"CVE-2014-3600","kev_date_added":null,"published":"2017-10-27"},{"cvss_score":9.8,"headline":"Improper Input Validation in Apache ActiveMQ","id":"CVE-2015-5254","kev_date_added":null,"published":"2016-01-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["x-stream"]},"summary":"Remote attackers can cause denial of service by consuming 100% CPU via manipulated XML input in XStream library.","url":"https://insights.sbomify.com/CVE-2021-21341/"}