{"answers":{"affected":"3 open source packages ship an affected version, including activemq and com.thoughtworks.xstream:xstream. It affects 16 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-21345 exists.","fix":"Upgrade activemq to 5.15.14 or later.","what":"CVE-2021-21345 is a medium-severity unsafe deserialization vulnerability in Apache Activemq, published on 22 Mar 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-21345 and fix it if it is affected.\n\nWhat it is: CVE-2021-21345 is a medium-severity unsafe deserialization vulnerability in Apache Activemq, published on 22 Mar 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-21345 exists.\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-21345/ (Markdown: https://insights.sbomify.com/CVE-2021-21345/index.md)","id":"CVE-2021-21345","markdown":"https://insights.sbomify.com/CVE-2021-21345/index.md","name":"CVE-2021-21345","record":{"aliases":["BIT-activemq-2021-21345","DEBIAN-CVE-2021-21345","GHSA-hwpc-8xqv-jvj4","UBUNTU-CVE-2021-21345"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java XML serialization library","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary host commands via manipulated input streams if XStream's security framework whitelist is not configured.","user_interaction":"required","vuln_class":"deserialization"},"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":"banking_virtual_account_management","vendor":"oracle"},{"product":"business_activity_monitoring","vendor":"oracle"},{"product":"communications_billing_and_revenue_management_elastic_charging_engine","vendor":"oracle"},{"product":"communications_policy_management","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"peoplesoft_enterprise_peopletools","vendor":"oracle"},{"product":"retail_xstore_point_of_service","vendor":"oracle"},{"product":"webcenter_portal","vendor":"oracle"},{"product":"xstream","vendor":"xstream"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker who has sufficient rights to execute commands of the host 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":"2025-08-23","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-08-23T14:57:19Z","kind":"github_poc","ref":"https://github.com/shoucheng3/x-stream__xstream_CVE-2021-21345_1-4-15","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-21345.yaml","stars":null,"title":"XStream \u003c 1.4.16 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"XStream is vulnerable to a Remote Command Execution attack","id":"CVE-2021-21345","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_policy_management","oracle:communications_unified_inventory_management","oracle:peoplesoft_enterprise_peopletools","oracle:retail_xstore_point_of_service","oracle:webcenter_portal"],"type":"deserialization","year":"2021"},"n_packages":3,"n_references":16,"next":{"headline":"XStream is vulnerable to an Arbitrary Code Execution attack","id":"CVE-2021-21346"},"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-21345"},{"ecosystem":"Maven","fixed":["1.4.16"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":null,"source":"GHSA-hwpc-8xqv-jvj4"},{"ecosystem":"Maven","fixed":["1.4.16"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"GHSA-hwpc-8xqv-jvj4"}],"prev":{"headline":"XStream is vulnerable to an Arbitrary Code Execution attack","id":"CVE-2021-21344"},"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":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["x-stream"]},"summary":"Remote attackers can execute arbitrary host commands via manipulated input streams if XStream's security framework whitelist is not configured.","url":"https://insights.sbomify.com/CVE-2021-21345/"}