CVE-2025-31722
High
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.
SeverityHigh
CVSS8.8
Exploit probability—
Product
Jenkins Templating Engine
PublishedApr 2, 2025
First seenApr 2, 2025
Weakness typeCWE-94Code injection
How to fix
Update
- jenkins templating_engine2.5.4 or later
- org.jenkins-ci.plugins:templating-engine2.5.4 or later
Vendor advisories
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jenkins templating_engine | v < 2.5.4 | 2.5.4 |
| org.jenkins-ci.plugins:templating-engineMaven | v < 2.5.4 | 2.5.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.