{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.struts:struts2-rest-plugin. It affects 7 products.","exploited":"Yes. Attackers have exploited CVE-2017-9805 in the wild since at least 3 Nov 2021.","fix":"Upgrade org.apache.struts:struts2-rest-plugin to a fixed version for your release line: 2.3.34 or 2.5.13. US federal agencies must fix it by 3 May 2022.","what":"CVE-2017-9805 is a high-severity unsafe deserialization vulnerability in Apache Struts, published on 15 Sep 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-9805 and fix it if it is affected.\n\nWhat it is: CVE-2017-9805 is a high-severity unsafe deserialization vulnerability in Apache Struts, published on 15 Sep 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2017-9805 in the wild since at least 3 Nov 2021.\n\nAffected packages and fixed versions:\n- org.apache.struts:struts2-rest-plugin (Maven): affected from 2.1.1; fixed in 2.3.34\n- org.apache.struts:struts2-rest-plugin (Maven): affected from 2.1.1; fixed in 2.3.34\n- org.apache.struts:struts2-rest-plugin (Maven): affected from 2.5.0; fixed in 2.5.13\n- org.apache.struts:struts2-rest-plugin (Maven): affected from 2.5.0; fixed in 2.5.13\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-2017-9805/ (Markdown: https://insights.sbomify.com/CVE-2017-9805/index.md)","id":"CVE-2017-9805","markdown":"https://insights.sbomify.com/CVE-2017-9805/index.md","name":"CVE-2017-9805","record":{"aliases":["GHSA-gg9m-fj3v-r58c"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java web framework","requires_auth":"none","summary":"Attackers can execute arbitrary code by sending malicious XML payloads to the REST plugin due to unsafe deserialization in Apache Struts.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"struts","vendor":"apache"},{"product":"digital_media_manager","vendor":"cisco"},{"product":"hosted_collaboration_solution","vendor":"cisco"},{"product":"media_experience_engine","vendor":"cisco"},{"product":"network_performance_analysis","vendor":"cisco"},{"product":"video_distribution_suite_for_internet_streaming","vendor":"cisco"},{"product":"oncommand_balance","vendor":"netapp"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"The REST Plugin in Apache Struts 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2017-09-05","github_poc":20,"max_poc_stars":247,"metasploit":1,"nuclei":1,"refs":[{"date":"2017-09-09T01:32:57Z","kind":"github_poc","ref":"https://github.com/mazen160/struts-pwn_CVE-2017-9805","stars":247,"title":"An exploit for Apache Struts CVE-2017-9805"},{"date":"2017-09-06T08:32:01Z","kind":"github_poc","ref":"https://github.com/luc10/struts-rce-cve-2017-9805","stars":60,"title":"CVE 2017-9805"},{"date":"2017-12-04T18:23:53Z","kind":"github_poc","ref":"https://github.com/chrisjd20/cve-2017-9805.py","stars":21,"title":"Better Exploit Code For CVE 2017 9805 apache struts"},{"date":"2017-11-24T14:46:35Z","kind":"github_poc","ref":"https://github.com/0x00-0x00/-CVE-2017-9805","stars":15,"title":"Exploit script for Apache Struts2 REST Plugin XStream RCE (‎CVE-2017-9805)"},{"date":"2017-09-10T05:26:03Z","kind":"github_poc","ref":"https://github.com/Lone-Ranger/apache-struts-pwn_CVE-2017-9805","stars":5,"title":"An exploit for Apache Struts CVE-2017-9805"},{"date":"2017-09-07T08:49:14Z","kind":"github_poc","ref":"https://github.com/hahwul/struts2-rce-cve-2017-9805-ruby","stars":3,"title":"cve -2017-9805"},{"date":"2022-10-03T00:15:31Z","kind":"github_poc","ref":"https://github.com/Shakun8/CVE-2017-9805","stars":3,"title":"CVE-2017-9805 POC"},{"date":"2017-11-28T02:46:07Z","kind":"github_poc","ref":"https://github.com/BeyondCy/S2-052","stars":1,"title":"CVE-2017-9805 - Exploit"}],"tier":"exploited"},"has_fix":true,"headline":"Apache Struts Deserialization of Untrusted Data","id":"CVE-2017-9805","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Unknown","product":"Struts","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache Struts Deserialization of Untrusted Data Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"apache:struts","products":["apache:struts","netapp:oncommand_balance"],"type":"deserialization","year":"2017"},"n_packages":4,"n_references":12,"next":{"headline":"Memory corruption in Apache OpenOffice","id":"CVE-2017-9806"},"packages":[{"ecosystem":"Maven","fixed":["2.3.34"],"introduced":["2.1.1"],"last_affected":[],"package":"org.apache.struts:struts2-rest-plugin","purl":null,"source":"GHSA-gg9m-fj3v-r58c"},{"ecosystem":"Maven","fixed":["2.3.34"],"introduced":["2.1.1"],"last_affected":[],"package":"org.apache.struts:struts2-rest-plugin","purl":"pkg:maven/org.apache.struts/struts2-rest-plugin","source":"GHSA-gg9m-fj3v-r58c"},{"ecosystem":"Maven","fixed":["2.5.13"],"introduced":["2.5.0"],"last_affected":[],"package":"org.apache.struts:struts2-rest-plugin","purl":null,"source":"GHSA-gg9m-fj3v-r58c"},{"ecosystem":"Maven","fixed":["2.5.13"],"introduced":["2.5.0"],"last_affected":[],"package":"org.apache.struts:struts2-rest-plugin","purl":"pkg:maven/org.apache.struts/struts2-rest-plugin","source":"GHSA-gg9m-fj3v-r58c"}],"prev":{"headline":"Apache Struts allows entering a custom URL in a form field if built-in URLValidator is used","id":"CVE-2017-9804"},"products":["Apache Struts"],"published":"2017-09-15","related":[{"cvss_score":9.8,"headline":"Apache Struts Remote Code Execution","id":"CVE-2020-17530","kev_date_added":"2021-11-03","published":"2020-12-11"},{"cvss_score":9.8,"headline":"Apache Struts 1 Improper Input Validation","id":"CVE-2017-9791","kev_date_added":"2022-02-10","published":"2017-07-10"},{"cvss_score":9.8,"headline":"Apache Struts Remote Code Execution","id":"CVE-2017-5638","kev_date_added":"2021-11-03","published":"2017-03-11"},{"cvss_score":9.8,"headline":"Apache Struts 2 Improper Input Validation","id":"CVE-2012-0391","kev_date_added":"2022-01-21","published":"2012-01-08"},{"cvss_score":8.1,"headline":"Apache Struts Remote Code Execution","id":"CVE-2018-11776","kev_date_added":"2021-11-03","published":"2018-08-22"},{"cvss_score":8.1,"headline":"Apache Struts Command Injection","id":"CVE-2016-3081","kev_date_added":"2026-10-08","published":"2016-04-26"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary code by sending malicious XML payloads to the REST plugin due to unsafe deserialization in Apache Struts.","url":"https://insights.sbomify.com/CVE-2017-9805/"}