{
  "id": "CVE-2020-10199",
  "url": "https://poc.griffinguard.io/cve/CVE-2020-10199",
  "published_at": "2020-04-01T18:27:23Z",
  "title": "Sonatype Nexus Repository Remote Code Execution Vulnerability",
  "vendor": "Sonatype",
  "product": "Nexus Repository",
  "cvss": {
    "score": 8.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/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": 581
  },
  "first_poc": {
    "created_at": "2020-04-07T13:23:12Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 5.8,
    "repo": "wsfengfan/CVE-2020-10199-10204",
    "source": "github"
  },
  "poc_repo_count": 4,
  "exploit_count": 4,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Sonatype Nexus Repository before 3.21.2 allows JavaEL Injection (issue 1 of 2).",
  "cwe": "CWE-917",
  "cvss_by_source": {
    "cisa-adp": 8.8
  },
  "repos": [
    {
      "repo": "Live-Hack-CVE/CVE-2020-10199",
      "url": "https://github.com/Live-Hack-CVE/CVE-2020-10199",
      "created_at": null,
      "first_seen_at": "2026-11-14T23:12:49.679Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "wsfengfan/CVE-2020-10199-10204",
      "url": "https://github.com/wsfengfan/CVE-2020-10199-10204",
      "created_at": "2020-04-07T13:23:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 19,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-11-20T05:26:37Z"
    },
    {
      "repo": "jas502n/CVE-2020-10199",
      "url": "https://github.com/jas502n/CVE-2020-10199",
      "created_at": "2020-04-08T07:36:30Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 35,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-01-07T12:20:39Z"
    },
    {
      "repo": "magicming200/CVE-2020-10199_CVE-2020-10204",
      "url": "https://github.com/magicming200/CVE-2020-10199_CVE-2020-10204",
      "created_at": "2020-04-08T11:08:35Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 25,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-11-15T02:02:22Z"
    },
    {
      "repo": "zhzyker/CVE-2020-10199_POC-EXP",
      "url": "https://github.com/zhzyker/CVE-2020-10199_POC-EXP",
      "created_at": "2020-04-16T09:40:15Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 43,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-10-19T01:56:25Z"
    },
    {
      "repo": "aleenzz/CVE-2020-10199",
      "url": "https://github.com/aleenzz/CVE-2020-10199",
      "created_at": "2020-05-15T06:12:51Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 31,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-08-19T07:17:50Z"
    },
    {
      "repo": "hugosg97/CVE-2020-10199-Nexus-3.21.01",
      "url": "https://github.com/hugosg97/CVE-2020-10199-Nexus-3.21.01",
      "created_at": "2023-06-13T13:10: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": "2021-09-01T05:46:24Z"
    },
    {
      "repo": "finn79426/CVE-2020-10199",
      "url": "https://github.com/finn79426/CVE-2020-10199",
      "created_at": "2025-05-21T03:29:03Z",
      "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": "2017-03-14T12:11:59Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.sonatype.nexus:nexus-extdirect",
        "ranges": [
          "\u003c 3.21.2"
        ],
        "fixed_in": [
          "3.21.2"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-g2f6-v5qh-h2mq"
      }
    ],
    "upgrade": [
      "Upgrade org.sonatype.nexus:nexus-extdirect to 3.21.2 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/48343",
      "source": "exploitdb",
      "title": "Nexus Repository Manager - Java EL Injection RCE (Metasploit)",
      "published_at": "2020-04-17T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/49385",
      "source": "exploitdb",
      "title": "Sonatype Nexus 3.21.1 - Remote Code Execution (Authenticated)",
      "published_at": "2021-01-06T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/nexus_repo_manager_el_injection.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Nexus Repository Manager Java EL Injection RCE (exploit/linux/http/nexus_repo_manager_el_injection)",
      "published_at": "2020-04-15T20:49:33Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-10199.yaml",
      "source": "nuclei",
      "title": "nuclei template: Sonatype Nexus Repository Manager 3 - Remote Code Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/service/rest/beta/repositories/go/group",
      "headers": [
        {
          "name": "404",
          "value": "whoami"
        },
        {
          "name": "404",
          "value": "{var}"
        },
        {
          "name": "Accept",
          "value": "application/json, text/plain, */*"
        },
        {
          "name": "Accept-Language",
          "value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
        },
        {
          "name": "Cookie",
          "value": "{var}"
        },
        {
          "name": "Cookie",
          "value": "jenkins-timestamper-offset=-28800000; Hm_lvt_8346bb07e7843cd10a2ee33017b3d627=1583249520; NX-ANTI-CSRF-TOKEN=0.6153568974227819; NXSESSIONID={var}"
        },
        {
          "name": "Cookie",
          "value": "NX-ANTI-CSRF-TOKEN={var}; NXSESSIONID={var}"
        },
        {
          "name": "Nx-Anti-Csrf-Token",
          "value": "{var}"
        },
        {
          "name": "Nx-Anti-Csrf-Token",
          "value": "0.6153568974227819"
        },
        {
          "name": "Origin",
          "value": "http://{var}:{var}"
        },
        {
          "name": "Referer",
          "value": "http://{var}:{var}"
        },
        {
          "name": "X-Nexus-Ui",
          "value": "true"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "body_markers": [
        "\"name\":\"internal\"",
        "\"online\":\"true\"",
        "\"storage\"",
        "\"blobStoreName\":\"default\"",
        "\"strictContentTypeValidation\":\"true\"",
        "\"group\"",
        "\"memberNames\"",
        "\"username\"",
        "\"password\""
      ],
      "content_type": "application/json",
      "ports": [
        8080,
        8081
      ],
      "user_agents": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0",
        "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "aleenzz/CVE-2020-10199",
        "hugosg97/CVE-2020-10199-Nexus-3.21.01",
        "wsfengfan/CVE-2020-10199-10204",
        "zhzyker/CVE-2020-10199_POC-EXP"
      ],
      "repo_count": 4,
      "confidence": 0.7,
      "evidence": [
        "aleenzz/CVE-2020-10199/CVE-2020-10199.py:50",
        "hugosg97/CVE-2020-10199-Nexus-3.21.01/exploit.py:42",
        "wsfengfan/CVE-2020-10199-10204/Nexus-CVE-2020-POC.py:50",
        "zhzyker/CVE-2020-10199_POC-EXP/cve-2020-10199_cmd.py:79",
        "zhzyker/CVE-2020-10199_POC-EXP/cve-2020-10199_poc.py:47"
      ]
    },
    {
      "method": "POST",
      "path_template": "/service/rapture/session",
      "headers": [
        {
          "name": "X-Nexus-Ui",
          "value": "true"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "body_markers": [
        "username=",
        "password="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8080,
        8081
      ],
      "user_agents": [
        "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "aleenzz/CVE-2020-10199",
        "hugosg97/CVE-2020-10199-Nexus-3.21.01",
        "zhzyker/CVE-2020-10199_POC-EXP"
      ],
      "repo_count": 3,
      "confidence": 0.7,
      "evidence": [
        "aleenzz/CVE-2020-10199/CVE-2020-10199.py:36",
        "hugosg97/CVE-2020-10199-Nexus-3.21.01/exploit.py:21",
        "zhzyker/CVE-2020-10199_POC-EXP/cve-2020-10199_cmd.py:43"
      ]
    },
    {
      "method": "POST",
      "path_template": "/service/extdirect",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json, text/plain, */*"
        },
        {
          "name": "Accept-Language",
          "value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
        },
        {
          "name": "Cookie",
          "value": "{var}"
        },
        {
          "name": "Nx-Anti-Csrf-Token",
          "value": "{var}"
        },
        {
          "name": "Origin",
          "value": "http://{var}:{var}"
        },
        {
          "name": "Referer",
          "value": "http://{var}:{var}"
        },
        {
          "name": "X-Nexus-Ui",
          "value": "true"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "content_type": "application/json",
      "user_agents": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
      ],
      "protocol": "http",
      "repos": [
        "wsfengfan/CVE-2020-10199-10204"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "wsfengfan/CVE-2020-10199-10204/Nexus-CVE-2020-POC.py:39"
      ]
    }
  ],
  "rules": []
}
