{
  "id": "CVE-2017-9805",
  "url": "https://poc.griffinguard.io/cve/CVE-2017-9805",
  "published_at": "2017-09-15T19:00:00Z",
  "title": "Apache Struts Deserialization of Untrusted Data Vulnerability",
  "vendor": "Apache Software Foundation",
  "product": "Apache Struts",
  "cvss": {
    "score": 8.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2021-11-03",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 1510
  },
  "first_poc": {
    "created_at": "2017-09-06T00:00:00Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -9.8,
    "source": "exploitdb",
    "url": "https://www.exploit-db.com/exploits/42627"
  },
  "poc_repo_count": 21,
  "exploit_count": 3,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-502",
  "cvss_by_source": {
    "cisa-adp": 8.1
  },
  "repos": [
    {
      "repo": "luc10/struts-rce-cve-2017-9805",
      "url": "https://github.com/luc10/struts-rce-cve-2017-9805",
      "created_at": "2017-09-06T08:32:01Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 60,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2014-06-10T13:39:38Z"
    },
    {
      "repo": "hahwul/struts2-rce-cve-2017-9805-ruby",
      "url": "https://github.com/hahwul/struts2-rce-cve-2017-9805-ruby",
      "created_at": "2017-09-07T08:49:14Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-07-07T03:24:23Z"
    },
    {
      "repo": "mazen160/struts-pwn_CVE-2017-9805",
      "url": "https://github.com/mazen160/struts-pwn_CVE-2017-9805",
      "created_at": "2017-09-09T01:32:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 247,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2014-10-02T12:04:09Z"
    },
    {
      "repo": "Lone-Ranger/apache-struts-pwn_CVE-2017-9805",
      "url": "https://github.com/Lone-Ranger/apache-struts-pwn_CVE-2017-9805",
      "created_at": "2017-09-10T05:26:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-11-17T03:21:07Z"
    },
    {
      "repo": "Vancir/s2-052-reproducing",
      "url": "https://github.com/Vancir/s2-052-reproducing",
      "created_at": "2017-10-26T11:39:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 20,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2016-05-02T10:08:30Z"
    },
    {
      "repo": "0x00-0x00/-CVE-2017-9805",
      "url": "https://github.com/0x00-0x00/-CVE-2017-9805",
      "created_at": "2017-11-24T14:46:35Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 15,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-11-09T18:19:21Z"
    },
    {
      "repo": "BeyondCy/S2-052",
      "url": "https://github.com/BeyondCy/S2-052",
      "created_at": "2017-11-28T02:46:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-06-14T04:36:15Z"
    },
    {
      "repo": "chrisjd20/cve-2017-9805.py",
      "url": "https://github.com/chrisjd20/cve-2017-9805.py",
      "created_at": "2017-12-04T18:23:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 21,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-04-06T02:39:20Z"
    },
    {
      "repo": "RayScri/Struts2-052-POC",
      "url": "https://github.com/RayScri/Struts2-052-POC",
      "created_at": "2019-04-10T07:46:13Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2019-04-10T06:51:28Z"
    },
    {
      "repo": "UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-",
      "url": "https://github.com/UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-",
      "created_at": "2019-08-31T22:06:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-08-06T18:35:17Z"
    },
    {
      "repo": "UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit",
      "url": "https://github.com/UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit",
      "created_at": "2019-09-02T22:24:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-08-06T18:35:17Z"
    },
    {
      "repo": "AvishkaSenadheera/CVE-2017-9805---Documentation---IT19143378",
      "url": "https://github.com/AvishkaSenadheera/CVE-2017-9805---Documentation---IT19143378",
      "created_at": "2020-05-12T17:53:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-02-27T18:05:23Z"
    },
    {
      "repo": "wifido/CVE-2017-9805-Exploit",
      "url": "https://github.com/wifido/CVE-2017-9805-Exploit",
      "created_at": "2020-06-11T07:36:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-12-16T01:10:12Z"
    },
    {
      "repo": "samqbush/struts-rest-showcase",
      "url": "https://github.com/samqbush/struts-rest-showcase",
      "created_at": "2020-11-13T02:01:26Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2020-11-13T02:00:19Z"
    },
    {
      "repo": "rvermeulen/apache-struts-cve-2017-9805",
      "url": "https://github.com/rvermeulen/apache-struts-cve-2017-9805",
      "created_at": "2020-11-13T12:04:32Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2011-02-24T19:55:48Z"
    },
    {
      "repo": "jongmartinez/-CVE-2017-9805-",
      "url": "https://github.com/jongmartinez/-CVE-2017-9805-",
      "created_at": "2020-11-28T00:00:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-03-31T20:15:36Z"
    },
    {
      "repo": "z3bd/CVE-2017-9805",
      "url": "https://github.com/z3bd/CVE-2017-9805",
      "created_at": "2021-03-05T21:57:11Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-02-26T15:31:06Z"
    },
    {
      "repo": "0xd3vil/CVE-2017-9805-Exploit",
      "url": "https://github.com/0xd3vil/CVE-2017-9805-Exploit",
      "created_at": "2021-04-04T04:35:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-09-27T07:47:10Z"
    },
    {
      "repo": "agent3137/CVE-2017-9805-Exploit",
      "url": "https://github.com/agent3137/CVE-2017-9805-Exploit",
      "created_at": "2021-04-04T04:35:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-09-27T07:47:10Z"
    },
    {
      "repo": "SavoBit/apache-exploit-demo",
      "url": "https://github.com/SavoBit/apache-exploit-demo",
      "created_at": "2021-06-17T11:20:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-04-18T02:24:39Z"
    },
    {
      "repo": "sujithvaddi/apache_struts_cve_2017_9805",
      "url": "https://github.com/sujithvaddi/apache_struts_cve_2017_9805",
      "created_at": "2021-08-20T16:49:59Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2014-12-26T20:03:01Z"
    },
    {
      "repo": "Shakun8/CVE-2017-9805",
      "url": "https://github.com/Shakun8/CVE-2017-9805",
      "created_at": "2022-10-03T00:15:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-07-19T14:24:31Z"
    },
    {
      "repo": "NoSpaceAvailable/CVE-2017-9805_example_build",
      "url": "https://github.com/NoSpaceAvailable/CVE-2017-9805_example_build",
      "created_at": "2025-12-13T19:13:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-02T14:03:14Z"
    },
    {
      "repo": "Fl5xia/CVE-2017-9805",
      "url": "https://github.com/Fl5xia/CVE-2017-9805",
      "created_at": "2026-01-04T18:57:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-01-03T19:42:13Z"
    },
    {
      "repo": "7s26simon/CVE-2017-9805-S2-052",
      "url": "https://github.com/7s26simon/CVE-2017-9805-S2-052",
      "created_at": "2026-02-28T11:29:16Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-07-28T11:56:55Z"
    },
    {
      "repo": "Experience-rookie/struts-s2-052-deserialization-rce-lab",
      "url": "https://github.com/Experience-rookie/struts-s2-052-deserialization-rce-lab",
      "created_at": "2026-03-16T08:01:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-02-14T11:40:44Z"
    },
    {
      "repo": "RaniaMathlouthi/cve-2017-9805-struts-lab",
      "url": "https://github.com/RaniaMathlouthi/cve-2017-9805-struts-lab",
      "created_at": "2026-09-24T11:58:03Z",
      "first_seen_at": "2026-11-15T03:24:29.718Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2022-09-20T10:31:59Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.apache.struts:struts2-rest-plugin",
        "ranges": [
          "\u003e= 2.1.1, \u003c 2.3.34"
        ],
        "fixed_in": [
          "2.3.34"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-gg9m-fj3v-r58c"
      },
      {
        "vendor": "",
        "product": "org.apache.struts:struts2-rest-plugin",
        "ranges": [
          "\u003e= 2.5.0, \u003c 2.5.13"
        ],
        "fixed_in": [
          "2.5.13"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-gg9m-fj3v-r58c"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.struts:struts2-rest-plugin to 2.3.34 or later.",
      "Upgrade org.apache.struts:struts2-rest-plugin to 2.5.13 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/42627/",
      "source": "cvelist",
      "title": "42627",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/42627",
      "source": "exploitdb",
      "title": "Apache Struts 2.5 \u003c 2.5.12 - REST Plugin XStream Remote Code Execution",
      "published_at": "2017-09-06T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts2_rest_xstream.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Apache Struts 2 REST Plugin XStream RCE (exploit/multi/http/struts2_rest_xstream)",
      "published_at": "2017-09-08T00:30:48Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-9805.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Struts2 S2-052 - Remote Code Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/struts2-rest-showcase{var}/orders/",
      "protocol": "http",
      "repos": [
        "UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit",
        "UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit/CVE-2017-9805_Struts_Fuzz_N_Sploit.py:48",
        "UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit/CVE-2017-9805_Struts_Fuzz_N_Sploit.py:59",
        "UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-/struts_rest_rce_fuzz.py:45"
      ]
    },
    {
      "method": "GET",
      "path_template": "/struts2-rest-showcase-2.3.11/orders.xhtml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:18"
      ]
    },
    {
      "method": "GET",
      "path_template": "/struts2-rest-showcase-2.5.10/orders.xhtml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:19"
      ]
    },
    {
      "method": "GET",
      "path_template": "/struts2-rest-showcase-2.5.12/orders.xhtml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:20"
      ]
    },
    {
      "method": "GET",
      "path_template": "/struts2-rest-showcase/orders.xhtml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:17"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/login",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en-US,en;q=0.9"
        },
        {
          "name": "Cookie",
          "value": "JSESSIONID=401BE92E6851ED598126022E8173EE3F"
        },
        {
          "name": "Origin",
          "value": "http://localhost:8000"
        },
        {
          "name": "Referer",
          "value": "http://localhost:8000/auth.jsp"
        },
        {
          "name": "Sec-Ch-Ua",
          "value": "\"Not_A Brand\";v=\"99\", \"Chromium\";v=\"142\""
        },
        {
          "name": "Sec-Ch-Ua-Mobile",
          "value": "?0"
        },
        {
          "name": "Sec-Ch-Ua-Platform",
          "value": "\"Windows\""
        },
        {
          "name": "Sec-Fetch-Dest",
          "value": "empty"
        },
        {
          "name": "Sec-Fetch-Mode",
          "value": "cors"
        },
        {
          "name": "Sec-Fetch-Site",
          "value": "same-origin"
        }
      ],
      "content_type": "application/xml;charset=UTF-8",
      "ports": [
        8000
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "NoSpaceAvailable/CVE-2017-9805_example_build"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "NoSpaceAvailable/CVE-2017-9805_example_build/payload.txt:1"
      ]
    },
    {
      "method": "POST",
      "path_template": "/struts2-rest-showcase-2.3.1/orders/3",
      "content_type": "application/xml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:28"
      ]
    },
    {
      "method": "POST",
      "path_template": "/struts2-rest-showcase-2.5.10/orders/3",
      "content_type": "application/xml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:29"
      ]
    },
    {
      "method": "POST",
      "path_template": "/struts2-rest-showcase-2.5.12/orders/3",
      "content_type": "application/xml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:30"
      ]
    },
    {
      "method": "POST",
      "path_template": "/struts2-rest-showcase/orders/3",
      "content_type": "application/xml",
      "protocol": "http",
      "repos": [
        "z3bd/CVE-2017-9805"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "z3bd/CVE-2017-9805/CVE-2017-9805.yaml:27"
      ]
    }
  ],
  "rules": []
}
