CVE-2021-21646: Jenkins Templating Engine - Remote Code Execution
- Cve: CVE-2021-21646
- Name: Jenkins Templating Engine - Remote Code Execution
- Description: Jenkins Templating Engine Plugin 2.1 and earlier does not protect its pipeline configurations using Script Security Plugin, allowing attackers with Job/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM.
- Impact: Attackers can execute arbitrary code on the Jenkins controller, potentially leading to full system compromise.
- Remediation: Update to Jenkins Templating Engine Plugin 2.2 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs Job/Configure permission
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01749
- Epss percentile: 0.78313
- Assignee: [email protected]
- Published at: 2021-04-21T15:15:08Z
- Age in days: 2043
- Modified at: 2026-06-17T03:35:55Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21646
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-693 | — |
References
| Url | Source | Tags |
|---|---|---|
| https://www.jenkins.io/security/advisory/2021-04-21/#SECURITY-2311 | nvd | Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2021/04/21/2 | nvd | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jenkins:templating_engine | <= 2.1 | no | nvd | /v1/products/jenkins/templating_engine |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jenkinsci/templating-engine-plugin | commit, package | yes | /v1/repositories/jenkinsci/templating-engine-plugin |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts