Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-21646

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-21646
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:38 UTC · Revision 1

Source evidence

CVE-2021-21646

core-osv · Original source

Published 21 Apr 2021, 15:15 UTC

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.

osv:CVE-2021-21646
Complete source record
{
  "id": "a93ee7bc93115de820434eb3f71334afe69790fe75380a899b0773373c3e45e4",
  "url": "https://osv.dev/vulnerability/CVE-2021-21646",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-21646",
    "summary": "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.",
    "evidence": "osv:CVE-2021-21646",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-21646",
      "aliases": [
        "CVE-2021-21646",
        "GHSA-p6qc-37hq-wqr6"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jenkinsci/templating-engine-plugin",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "20b19f3dc87b64948d0dfb4cbb917a23aabdd118"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:jenkins:templating_engine:*:*:*:*:*:jenkins:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.1",
            "2.0.2",
            "1.7",
            "1.6",
            "1.5.2",
            "1.5.1",
            "1.5",
            "1.4.2",
            "1.4.1",
            "1.4",
            "1.3",
            "v1.2",
            "1.1.1",
            "1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21646.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:21.219742018Z",
      "provider": "osv",
      "references": [
        "https://www.jenkins.io/security/advisory/2021-04-21/#SECURITY-2311"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-21646",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430445,
  "published_at": "2021-04-21T15:15:08.44+00:00"
}