{"answers":{"affected":"3 open source packages ship an affected version, including activemq and com.thoughtworks.xstream:xstream. It affects 17 products.","exploited":"There is no known exploitation of CVE-2021-21349 in the wild and no public exploit code.","fix":"Upgrade activemq to 5.15.14 or later.","what":"CVE-2021-21349 is a medium-severity server-side request forgery vulnerability in Apache Activemq, published on 22 Mar 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-21349 and fix it if it is affected.\n\nWhat it is: CVE-2021-21349 is a medium-severity server-side request forgery vulnerability in Apache Activemq, published on 22 Mar 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-21349 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-21349/ (Markdown: https://insights.sbomify.com/CVE-2021-21349/index.md)","id":"CVE-2021-21349","markdown":"https://insights.sbomify.com/CVE-2021-21349/index.md","name":"CVE-2021-21349","record":{"aliases":["BIT-activemq-2021-21349","DEBIAN-CVE-2021-21349","GHSA-f6hm-88x3-mfjv","UBUNTU-CVE-2021-21349"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Java XML serialization library","requires_auth":"none","summary":"Remote attackers can trigger Server-Side Request Forgery via XStream deserialization to access internal resources if security whitelists are not configured.","user_interaction":"required","vuln_class":"ssrf"},"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":"graalvm","vendor":"oracle"},{"product":"java_se","vendor":"oracle"},{"product":"retail_xstore_point_of_service","vendor":"oracle"},{"product":"webcenter_portal","vendor":"oracle"},{"product":"xstream","vendor":"xstream"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"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 to request data from internal resources that are not publicly available 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":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-05-09T06:50:31Z","kind":"github_poc","ref":"https://github.com/s-index/CVE-2021-21349","stars":1,"title":"XStream SSRF CVE-2021-21349"}],"tier":"poc_unverified"},"has_fix":true,"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-21349","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:graalvm","oracle:retail_xstore_point_of_service","oracle:webcenter_portal"],"type":"ssrf","year":"2021"},"n_packages":3,"n_references":15,"next":{"headline":"XStream is vulnerable to an Arbitrary Code Execution attack","id":"CVE-2021-21350"},"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-21349"},{"ecosystem":"Maven","fixed":["1.4.16"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":null,"source":"GHSA-f6hm-88x3-mfjv"},{"ecosystem":"Maven","fixed":["1.4.16"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"GHSA-f6hm-88x3-mfjv"}],"prev":{"headline":"XStream is vulnerable to an attack using Regular Expression for a Denial of Service (ReDos)","id":"CVE-2021-21348"},"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 trigger Server-Side Request Forgery via XStream deserialization to access internal resources if security whitelists are not configured.","url":"https://insights.sbomify.com/CVE-2021-21349/"}