{"answers":{"affected":"4 open source packages ship an affected version, including com.thoughtworks.xstream:xstream. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-7285 exists.","fix":"Upgrade com.thoughtworks.xstream:xstream to a fixed version for your release line: 1.4.7 or 1.4.11.","what":"CVE-2013-7285 is a critical command injection vulnerability in Apache Activemq, published on 15 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2013-7285 and fix it if it is affected.\n\nWhat it is: CVE-2013-7285 is a critical command injection vulnerability in Apache Activemq, published on 15 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-7285 exists.\n\nAffected packages and fixed versions:\n- com.thoughtworks.xstream:xstream (Maven): affected all versions; fixed in 1.4.7\n- com.thoughtworks.xstream:xstream (Maven): affected all versions; fixed in 1.4.7\n- com.thoughtworks.xstream:xstream (Maven): affected from 1.4.10; fixed in 1.4.11\n- com.thoughtworks.xstream:xstream (Maven): affected from 1.4.10; fixed in 1.4.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-2013-7285/ (Markdown: https://insights.sbomify.com/CVE-2013-7285/index.md)","id":"CVE-2013-7285","markdown":"https://insights.sbomify.com/CVE-2013-7285/index.md","name":"CVE-2013-7285","record":{"aliases":["DEBIAN-CVE-2013-7285","GHSA-f554-x222-wgf7","MGASA-2014-0100","RHSA-2014:0389","UBUNTU-CVE-2013-7285"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"XStream Java library","requires_auth":"none","summary":"Remote attackers can execute arbitrary shell commands via manipulated input streams in XStream if the security framework is not initialized.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"activemq","vendor":"apache"},{"product":"endeca_information_discovery_studio","vendor":"oracle"},{"product":"xstream","vendor":"xstream"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Xstream API versions up to 1.4.6 and version 1.4.10, if the security framework has not been initialized, may allow a remote attacker to run arbitrary shell commands by manipulating the processed input stream when unmarshaling XML or any supported format. e.g. JSON.","ecosystems":["Maven","Red Hat:rhev_manager:3"],"exploits":{"exploitdb":1,"first_seen":"2016-01-07","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2016-01-07","kind":"exploitdb","ref":"39193","stars":null,"title":"OpenMRS Reporting Module 0.9.7 - Remote Code Execution"},{"date":"2025-08-19T11:08:56Z","kind":"github_poc","ref":"https://github.com/shoucheng3/x-stream__xstream_CVE-2013-7285_1-4-6","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2013/CVE-2013-7285.yaml","stars":null,"title":"XStream \u003c1.4.6/1.4.10 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Command Injection in Xstream","id":"CVE-2013-7285","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"apache:activemq","products":["apache:activemq"],"type":"command_injection","year":"2013"},"n_packages":5,"n_references":9,"next":{"headline":"Weak cryptography in n/a","id":"CVE-2013-7286"},"packages":[{"ecosystem":"Maven","fixed":["1.4.7"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":null,"source":"GHSA-f554-x222-wgf7"},{"ecosystem":"Maven","fixed":["1.4.7"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"GHSA-f554-x222-wgf7"},{"ecosystem":"Maven","fixed":["1.4.11"],"introduced":["1.4.10"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":null,"source":"GHSA-f554-x222-wgf7"},{"ecosystem":"Maven","fixed":["1.4.11"],"introduced":["1.4.10"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"GHSA-f554-x222-wgf7"},{"ecosystem":"Red Hat:rhev_manager:3","fixed":["0:5.5.0-6.el6ev"],"introduced":["0"],"last_affected":[],"package":"jasperreports-server-pro","purl":"pkg:rpm/redhat/jasperreports-server-pro","source":"RHSA-2014:0389"}],"prev":{"headline":"Deserialization in n/a","id":"CVE-2013-7284"},"products":["n/a"],"published":"2019-05-15","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":"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":"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary shell commands via manipulated input streams in XStream if the security framework is not initialized.","url":"https://insights.sbomify.com/CVE-2013-7285/"}