{"id":"CVE-2021-21646","aliases":["GHSA-p6qc-37hq-wqr6"],"url":"https://o3.security/vulnerability/CVE-2021-21646","summary":"Remote code execution vulnerability in Jenkins Templating Engine Plugin","details":"Jenkins Templating Engine Plugin 2.1 and earlier does not protect its pipeline configurations using Script Security Plugin.\n\nThis vulnerability allows attackers with Job/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM.\n\nJenkins Templating Engine Plugin 2.2 integrates with Script Security Plugin to protect its pipeline configurations.","published":"2021-04-21T15:15:08.440Z","modified":"2026-07-08T23:58:41.769838Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.01749,"percentile":0.75686,"asOf":"2026-08-08"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.jenkins-ci.plugins:templating-engine","fixedVersion":"2.2"}],"fix":{"url":"https://github.com/jenkinsci/templating-engine-plugin/commit/aed14bed7333329f51330d0a8111e4d94cdee3e6","label":"jenkinsci/templating-engine-plugin@aed14be"},"references":[{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2021/04/21/2"},{"type":"ADVISORY","url":"https://www.jenkins.io/security/advisory/2021-04-21/#SECURITY-2311"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21646"},{"type":"WEB","url":"https://github.com/jenkinsci/templating-engine-plugin/commit/aed14bed7333329f51330d0a8111e4d94cdee3e6"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/templating-engine-plugin"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T23:58:41.769838Z"}}