Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.jenkins-ci.plugins/templating-engine
  4. ›
  5. CVE-2021-21646

CVE-2021-21646: Protection Mechanism Failure

May 24, 2022 (updated December 21, 2022)

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.

References

  • www.openwall.com/lists/oss-security/2021/04/21/2
  • github.com/advisories/GHSA-p6qc-37hq-wqr6
  • nvd.nist.gov/vuln/detail/CVE-2021-21646
  • www.jenkins.io/security/advisory/2021-04-21/

Code Behaviors & Features

Detect and mitigate CVE-2021-21646 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.1

Fixed versions

  • 2.2

Solution

Upgrade to version 2.2 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-693: Protection Mechanism Failure
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

maven/org.jenkins-ci.plugins/templating-engine/CVE-2021-21646.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.