CVE-2025-31722
highpriority · track · 10EPSS 0.013 · 70 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (2)
Public proof-of-concept and weaponised exploit code.
- Nick6371/CVE-2025-31722Used to demo CVE-2025-31722.PoC · poc_in_github
- h3raklez/CVE-2025-31722CVE-2025-31722 — Jenkins Templating Engine RCEPoC · poc_in_github
affected products (6)
Products and version ranges known to be affected.
- Maven org.jenkins-ci.plugins:templating-engine< 2.5.4osvUSpkg:maven/org.jenkins-ci.plugins/templating-engine
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-0689Jenkins Plugins: Mehrere SchwachstellenDeutsch2025-04-02csaf · cert_bundDE
Ein entfernter anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in Jenkins ausnutzen, um Informationen preiszugeben, Daten zu manipulieren und beliebigen Code auszuführen.
- GHSA-4vjp-327p-w4qvJenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution2025-04-02ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://nvd.nist.gov/vuln/detail/CVE-2025-31722cnnvd
- https://vigilance.fr/vulnerability/Jenkins-Plugins-six-vulnerabilities-dated-02-04-2025-46733cnnvd
- https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505cnnvd
- https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505enisa_euvd
- https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan