CVE-2021-21646
HIGH 8.8CVSS 3.1Remote code execution vulnerability in Jenkins Templating Engine Plugin
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.
- Published
- 21 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-693
- Also known as
- GHSA-p6qc-37hq-wqr6
- Sources
- NVDJSONOSV GHSA-p6qc-37hq-wqr6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | templating_enginecpe:2.3:a:jenkins:templating_engine:*:*:*:*:*:jenkins:*:* |
<= 2.1 | |
| OSV | Maven | org.jenkins-ci.plugins:templating-engine | < 2.2 | 2.2 |
References
- http://www.openwall.com/lists/oss-security/2021/04/21/2 · Mailing List, Third Party Advisory, WEB
- https://www.jenkins.io/security/advisory/2021-04-21/#SECURITY-2311 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21646 · ADVISORY
- https://github.com/jenkinsci/templating-engine-plugin/commit/aed14bed7333329f51330d0a8111e4d94cdee3e6 · WEB
- https://github.com/jenkinsci/templating-engine-plugin · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)