{"answers":{"affected":"2 open source packages ship an affected version, including com.thoughtworks.xstream:xstream. It affects 17 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29505 exists.","fix":"Upgrade com.thoughtworks.xstream:xstream to 1.4.17 or later.","what":"CVE-2021-29505 is a high-severity unsafe deserialization vulnerability in Debian Debian Linux, published on 28 May 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-29505 and fix it if it is affected.\n\nWhat it is: CVE-2021-29505 is a high-severity unsafe deserialization vulnerability in Debian Debian Linux, published on 28 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29505 exists.\n\nAffected packages and fixed versions:\n- com.thoughtworks.xstream:xstream (Maven): affected all versions; fixed in 1.4.17\n- com.thoughtworks.xstream:xstream (Maven): affected all versions; fixed in 1.4.17\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-29505/ (Markdown: https://insights.sbomify.com/CVE-2021-29505/index.md)","id":"CVE-2021-29505","markdown":"https://insights.sbomify.com/CVE-2021-29505/index.md","name":"CVE-2021-29505","record":{"aliases":["DEBIAN-CVE-2021-29505","DLA-2704-1","GHSA-7chv-rrw6-w6fc","OESA-2021-1208","RHSA-2021:2683","SUSE-SU-2021:1995-1","UBUNTU-CVE-2021-29505","openSUSE-SU-2021:0911-1","openSUSE-SU-2021:1995-1"],"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 whitelist is not configured.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"snapmanager","vendor":"netapp"},{"product":"banking_cash_management","vendor":"oracle"},{"product":"banking_corporate_lending_process_management","vendor":"oracle"},{"product":"banking_credit_facilities_process_management","vendor":"oracle"},{"product":"banking_supply_chain_finance","vendor":"oracle"},{"product":"banking_trade_finance_process_management","vendor":"oracle"},{"product":"business_activity_monitoring","vendor":"oracle"},{"product":"communications_brm_-_elastic_charging_engine","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"enterprise_manager_ops_center","vendor":"oracle"},{"product":"retail_customer_insights","vendor":"oracle"},{"product":"retail_xstore_point_of_service","vendor":"oracle"},{"product":"webcenter_portal","vendor":"oracle"},{"product":"webcenter_sites","vendor":"oracle"},{"product":"xstream","vendor":"xstream"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.","ecosystems":["Maven","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","SUSE:Linux Enterprise Module for Development Tools 15 SP2","SUSE:Linux Enterprise Module for Development Tools 15 SP3","SUSE:Manager Server Module 4.1","SUSE:Manager Server Module 4.2","openSUSE:Leap 15.2","openSUSE:Leap 15.3"],"exploits":{"exploitdb":0,"first_seen":"2021-06-08","github_poc":2,"max_poc_stars":6,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-06-08T05:27:57Z","kind":"github_poc","ref":"https://github.com/MyBlackManba/CVE-2021-29505","stars":6,"title":"对CVE-2021-29505进行复现，并分析学了下Xstream反序列化过程"},{"date":"2025-07-11T03:28:36Z","kind":"github_poc","ref":"https://github.com/cuijiung/xstream-CVE-2021-29505","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-29505.yaml","stars":null,"title":"XStream \u003c1.4.17 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"XStream is vulnerable to a Remote Command Execution attack","id":"CVE-2021-29505","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","netapp:snapmanager","oracle:communications_unified_inventory_management","oracle:enterprise_manager_ops_center","oracle:retail_xstore_point_of_service","oracle:webcenter_portal","oracle:webcenter_sites"],"type":"deserialization","year":"2021"},"n_packages":16,"n_references":15,"next":{"headline":"Navigate endpoint is vulnerable to regex injection that may lead to Denial of Service.","id":"CVE-2021-29506"},"packages":[{"ecosystem":"Maven","fixed":["1.4.17"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":null,"source":"GHSA-7chv-rrw6-w6fc"},{"ecosystem":"Maven","fixed":["1.4.17"],"introduced":["0"],"last_affected":[],"package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"GHSA-7chv-rrw6-w6fc"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/redhat/xstream","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream-javadoc","purl":"pkg:rpm/redhat/xstream-javadoc","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/redhat/xstream","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream-javadoc","purl":"pkg:rpm/redhat/xstream-javadoc","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/redhat/xstream","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream-javadoc","purl":"pkg:rpm/redhat/xstream-javadoc","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/redhat/xstream","source":"RHSA-2021:2683"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.1-14.el7_9"],"introduced":["0"],"last_affected":[],"package":"xstream-javadoc","purl":"pkg:rpm/redhat/xstream-javadoc","source":"RHSA-2021:2683"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP2","fixed":["1.4.17-3.11.2"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/suse/xstream\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP2","source":"SUSE-SU-2021:1995-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP3","fixed":["1.4.17-3.11.2"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/suse/xstream\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3","source":"SUSE-SU-2021:1995-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["1.4.17-3.11.2"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/suse/xstream\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:1995-1"},{"ecosystem":"SUSE:Manager Server Module 4.2","fixed":["1.4.17-3.11.2"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/suse/xstream\u0026distro=SUSE%20Manager%20Server%20Module%204.2","source":"SUSE-SU-2021:1995-1"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["1.4.17-lp152.2.9.1"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/opensuse/xstream\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:0911-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["1.4.17-3.11.2"],"introduced":["0"],"last_affected":[],"package":"xstream","purl":"pkg:rpm/opensuse/xstream\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:1995-1"}],"prev":{"headline":"Improper Certificate Validation in WP-CLI framework","id":"CVE-2021-29504"},"products":["xstream"],"published":"2021-05-28","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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 whitelist is not configured.","url":"https://insights.sbomify.com/CVE-2021-29505/"}