{
  "id": "CVE-2020-17530",
  "url": "https://poc.griffinguard.io/cve/CVE-2020-17530",
  "published_at": "2020-12-11T01:11:04Z",
  "title": "Apache Struts Remote Code Execution Vulnerability",
  "vendor": "Apache Software Foundation",
  "product": "Apache Struts",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/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": 327
  },
  "first_poc": {
    "created_at": "2020-12-08T11:10:46Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -2.6,
    "repo": "phil-fly/CVE-2020-17530",
    "source": "github"
  },
  "poc_repo_count": 15,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Affected software : Apache Struts 2.0.0 - Struts 2.5.25.",
  "cwe": "CWE-917",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "phil-fly/CVE-2020-17530",
      "url": "https://github.com/phil-fly/CVE-2020-17530",
      "created_at": "2020-12-08T11:10:46Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-12-28T06:11:18Z"
    },
    {
      "repo": "pangyu360es/CVE-2020-17530",
      "url": "https://github.com/pangyu360es/CVE-2020-17530",
      "created_at": "2020-12-09T01:29:23Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-07-22T05:33:06Z"
    },
    {
      "repo": "secpool2000/CVE-2020-17530",
      "url": "https://github.com/secpool2000/CVE-2020-17530",
      "created_at": "2020-12-09T01:29:23Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-07-22T05:33:06Z"
    },
    {
      "repo": "ka1n4t/CVE-2020-17530",
      "url": "https://github.com/ka1n4t/CVE-2020-17530",
      "created_at": "2020-12-09T09:53:08Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 64,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-10-21T14:14:02Z"
    },
    {
      "repo": "whale-baby/exploitation-of-vulnerability",
      "url": "https://github.com/whale-baby/exploitation-of-vulnerability",
      "created_at": "2020-12-10T08:46:37Z",
      "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": "2019-06-17T06:35:18Z"
    },
    {
      "repo": "wuzuowei/CVE-2020-17530",
      "url": "https://github.com/wuzuowei/CVE-2020-17530",
      "created_at": "2020-12-10T17:42:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 45,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-03-27T15:07:00Z"
    },
    {
      "repo": "Al1ex/CVE-2020-17530",
      "url": "https://github.com/Al1ex/CVE-2020-17530",
      "created_at": "2020-12-13T11:02:15Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 29,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-04-07T15:12:05Z"
    },
    {
      "repo": "fengziHK/CVE-2020-17530-strust2-061",
      "url": "https://github.com/fengziHK/CVE-2020-17530-strust2-061",
      "created_at": "2020-12-14T06:54:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 7,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-03-09T02:15:46Z"
    },
    {
      "repo": "ludy-dev/freemarker_RCE_struts2_s2-061",
      "url": "https://github.com/ludy-dev/freemarker_RCE_struts2_s2-061",
      "created_at": "2020-12-18T07:03:57Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-08-30T08:00:41Z"
    },
    {
      "repo": "CyborgSecurity/CVE-2020-17530",
      "url": "https://github.com/CyborgSecurity/CVE-2020-17530",
      "created_at": "2020-12-30T17:23:20Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-09-02T18:14:35Z"
    },
    {
      "repo": "uzzzval/CVE-2020-17530",
      "url": "https://github.com/uzzzval/CVE-2020-17530",
      "created_at": "2021-01-07T14:24:08Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2014-05-03T21:07:20Z"
    },
    {
      "repo": "killmonday/CVE-2020-17530-s2-061",
      "url": "https://github.com/killmonday/CVE-2020-17530-s2-061",
      "created_at": "2021-01-24T07:51:31Z",
      "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": "2020-01-05T02:14:31Z"
    },
    {
      "repo": "Wrin9/CVE-2021-31805",
      "url": "https://github.com/Wrin9/CVE-2021-31805",
      "created_at": "2022-04-15T04:23:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 37,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-09-06T11:14:34Z"
    },
    {
      "repo": "lucksec/S2-62poc",
      "url": "https://github.com/lucksec/S2-62poc",
      "created_at": "2022-04-15T07:58:52Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-12-18T08:42:26Z"
    },
    {
      "repo": "JordanANDJohn/CVE-2021-31805-POC",
      "url": "https://github.com/JordanANDJohn/CVE-2021-31805-POC",
      "created_at": "2022-04-18T06:17:59Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-11-23T02:53:13Z"
    },
    {
      "repo": "fleabane1/CVE-2021-31805-POC",
      "url": "https://github.com/fleabane1/CVE-2021-31805-POC",
      "created_at": "2022-04-18T06:17:59Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-11-23T02:53:13Z"
    },
    {
      "repo": "z92g/CVE-2021-31805",
      "url": "https://github.com/z92g/CVE-2021-31805",
      "created_at": "2022-07-10T14:48:52Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2022-07-06T04:32:14Z"
    },
    {
      "repo": "keyuan15/CVE-2020-17530",
      "url": "https://github.com/keyuan15/CVE-2020-17530",
      "created_at": "2023-04-02T13:20:42Z",
      "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": "2019-10-11T08:03:22Z"
    },
    {
      "repo": "nth347/CVE-2020-17530",
      "url": "https://github.com/nth347/CVE-2020-17530",
      "created_at": "2023-08-04T03:00:28Z",
      "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": "2016-07-13T15:02:12Z"
    },
    {
      "repo": "nth347/struts2-CVE-2020-17530",
      "url": "https://github.com/nth347/struts2-CVE-2020-17530",
      "created_at": "2023-08-04T03:00:28Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2016-07-13T15:02:12Z"
    },
    {
      "repo": "fatkz/CVE-2020-17530",
      "url": "https://github.com/fatkz/CVE-2020-17530",
      "created_at": "2025-05-14T19:34:05Z",
      "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": "2020-07-14T21:42:18Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.apache.struts:struts2-core",
        "ranges": [
          "\u003e= 2.0.0, \u003c 2.5.26"
        ],
        "fixed_in": [
          "2.5.26"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-jc35-q369-45pv"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.struts:struts2-core to 2.5.26 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts2_multi_eval_ognl.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Apache Struts 2 Forced Multi OGNL Evaluation (exploit/multi/http/struts2_multi_eval_ognl)",
      "published_at": "2020-12-16T00:17:35Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-17530.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Struts 2.0.0-2.5.25 - 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": "/",
      "query_markers": [
        "id=%{('Powered_by_Unicode_Potats0,enjoy_it').(#UnicodeSec = #application['org.apache.tomcat.InstanceManager']).(#potats0=#UnicodeSec.newInstance('org.apache.commons.collections.BeanMap')).(#stackvalue=#attr['struts.valueStack']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get('context')).(#potats0.setBean(#context)).(#sm=#potats0.get('memberAccess')).(#emptySet=#UnicodeSec.newInstance('java.util.HashSet')).(#potats0.setBean(#sm)).(#potats0.put('excludedClasses',#emptySet)).(#potats0.put('excludedPackageNames',#emptySet)).(#exec=#UnicodeSec.newInstance('freemarker.template.utility.Execute')).(#cmd={'",
        "id=",
        "id=/?id=%{('Powered_by_Unicode_Potats0,enjoy_it').(#UnicodeSec = #application['org.apache.tomcat.InstanceManager']).(#potats0=#UnicodeSec.newInstance('org.apache.commons.collections.BeanMap')).(#stackvalue=#attr['struts.valueStack']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get('context')).(#potats0.setBean(#context)).(#sm=#potats0.get('memberAccess')).(#emptySet=#UnicodeSec.newInstance('java.util.HashSet')).(#potats0.setBean(#sm)).(#potats0.put('excludedClasses',#emptySet)).(#potats0.put('excludedPackageNames',#emptySet)).(#exec=#UnicodeSec.newInstance('freemarker.template.utility.Execute')).(#cmd={'"
      ],
      "ports": [
        8080,
        8081
      ],
      "protocol": "http",
      "repos": [
        "fengziHK/CVE-2020-17530-strust2-061",
        "ludy-dev/freemarker_RCE_struts2_s2-061",
        "whale-baby/exploitation-of-vulnerability",
        "wuzuowei/CVE-2020-17530"
      ],
      "repo_count": 4,
      "confidence": 0.7,
      "evidence": [
        "fengziHK/CVE-2020-17530-strust2-061/struts2-061-poc.py:15",
        "ludy-dev/freemarker_RCE_struts2_s2-061/freemarker_RCE_struts2_s2-061.py:9",
        "whale-baby/exploitation-of-vulnerability/CVE-2020-17530 S2-061远程命令执行漏洞/s2-061.py:16",
        "wuzuowei/CVE-2020-17530/struts2-061-poc.py:14"
      ]
    },
    {
      "method": "POST",
      "path_template": "/SimpleStruts_war_exploded/S2061.action",
      "headers": [
        {
          "name": "Accept-Language",
          "value": "zh-CN,zh;q=0.9"
        },
        {
          "name": "Cookie",
          "value": "JSESSIONID=0DD7F8E6B11D062C574037318DC36C2D"
        }
      ],
      "body_markers": [
        "------WebKitFormBoundaryl7d1B1aGsV2wcZwF\nContent-Disposition: form-data; name=\"id\""
      ],
      "content_type": "multipart/form-data; boundary=----WebKitFormBoundaryl7d1B1aGsV2wcZwF",
      "ports": [
        8080
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "Al1ex/CVE-2020-17530"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "Al1ex/CVE-2020-17530/README.md:19",
        "Al1ex/CVE-2020-17530/README.md:44",
        "Al1ex/CVE-2020-17530/README.md:65"
      ]
    },
    {
      "method": "GET",
      "path_template": "/seeyon/PeiQi.jspx",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "whale-baby/exploitation-of-vulnerability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "whale-baby/exploitation-of-vulnerability/致远OA ajax.do登录绕过任意文件上传/poc.py:39"
      ]
    },
    {
      "method": "GET",
      "path_template": "/seeyon/htmlofficeservlet",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "whale-baby/exploitation-of-vulnerability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "whale-baby/exploitation-of-vulnerability/2019 致远 OA A8远程Getshell/oaupload.py:11",
        "whale-baby/exploitation-of-vulnerability/2019 致远 OA A8远程Getshell/oaupload.py:49"
      ]
    },
    {
      "method": "GET",
      "path_template": "/seeyon/thirdpartyController.do.css/..;/ajax.do",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "whale-baby/exploitation-of-vulnerability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "whale-baby/exploitation-of-vulnerability/致远OA ajax.do登录绕过任意文件上传/poc.py:13"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}\u0026fileExt=txt",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "whale-baby/exploitation-of-vulnerability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "whale-baby/exploitation-of-vulnerability/泛微OA云桥未授权任意文件读取/fwy.py:13"
      ]
    },
    {
      "method": "POST",
      "path_template": "///{var}",
      "body_markers": [
        "name=\"name\""
      ],
      "content_type": "multipart/form-data",
      "protocol": "http",
      "repos": [
        "CyborgSecurity/CVE-2020-17530"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "CyborgSecurity/CVE-2020-17530/CVE-2020-17530.py:35"
      ]
    },
    {
      "method": "POST",
      "path_template": "/seeyon/htmlofficeservlet",
      "headers": [
        {
          "name": "Pragma",
          "value": "no-cache"
        }
      ],
      "ports": [
        8080
      ],
      "user_agents": [
        "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
      ],
      "protocol": "http",
      "repos": [
        "whale-baby/exploitation-of-vulnerability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "whale-baby/exploitation-of-vulnerability/2019 致远 OA A8远程Getshell/oaupload.py:38"
      ]
    },
    {
      "method": "POST",
      "path_template": "/struts2_showcase_war/hello.action",
      "body_markers": [
        "name=%"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "ka1n4t/CVE-2020-17530"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ka1n4t/CVE-2020-17530/s2-061.py:8"
      ]
    }
  ],
  "rules": []
}
