CVE-2025-31722
JSON

8.8high

Jenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.31% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-4vjp-327p-w4qv

Description

In Jenkins Templating Engine Plugin 2.5.3 and earlier, libraries defined in folders are not subject to sandbox protection, allowing attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM.

Affected

Product or packageVersionsReported by
Jenkins Project Jenkins Templating Engine Pluginup to 2.5.3CVE List
org.jenkins-ci.plugins:templating-engine (Maven)before 2.5.4GitHub Advisory Database
jenkins templating_enginebefore 2.5.4NVD

All scores

CISA-ADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In Jenkins Templating Engine Plugin 2.5.3 and earlier, libraries defined in folders are not subject to sandbox protection, allowing attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM.

GitHub Advisory Database

Jenkins Templating Engine Plugin allows defining libraries both in the global configuration, as well as scoped to folders containing the pipelines using them. While libraries in the global configuration can only be set up by administrators and can therefore be trusted, libraries defined in folders can be configured by users with Item/Configure permission.

In Templating Engine Plugin 2.5.3 and earlier, libraries defined in folders are not subject to sandbox protection. This vulnerability allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM.

In Templating Engine Plugin 2.5.4, libraries defined in folders are subject to sandbox protection.

NVD (es)

En Jenkins Templating Engine Plugin 2.5.3 y anterior, librerías definidos en las carpetas no están sujetos a la sandbox Protección, lo que permite a los atacantes con elemento/configuración de permiso para ejecutar código arbitrario en el contexto del controlador Jenkins JVM.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-31722 changed 2026-02-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-4vjp-327p-w4qv changed 2025-04-02CC-BY-4.0
NVDCVE-2025-31722 changed 2026-06-17Public domain