# CVE-2021-21646: Remote code execution vulnerability in Jenkins Templating Engine Plugin

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.75%, higher than 78% of CVEs (2026-12-01)
- Published: 2021-04-21T14:20:35.000Z
- Modified: 2026-06-17T03:35:55.720Z
- Also known as: GHSA-p6qc-37hq-wqr6
- Weaknesses: CWE-693
- Assigned by: jenkins

## 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.

(As written by CVE List.)

## Affected

- Jenkins project Jenkins Templating Engine Plugin: from unspecified up to 2.1
- org.jenkins-ci.plugins:templating-engine (Maven): before 2.2
- jenkins templating_engine: up to 2.1

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://www.jenkins.io/security/advisory/2021-04-21/#SECURITY-2311> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2021/04/21/2> (mailing-list, third-party-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)

## Sources

- CVE List: [CVE-2021-21646](https://www.cve.org/CVERecord?id=CVE-2021-21646), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-p6qc-37hq-wqr6](https://github.com/advisories/GHSA-p6qc-37hq-wqr6), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-21646](https://nvd.nist.gov/vuln/detail/CVE-2021-21646), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21646 · Whole record: https://cve.day/CVE-2021-21646.json · Rebuilt by cve.day 2026-11-25T22:58:00.876Z
