CVE-2025-31722
HIGH 8.8CVSS 3.1Jenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution
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.
- Published
- 2 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-4vjp-327p-w4qv
- Sources
- NVDJSONOSV GHSA-4vjp-327p-w4qvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | templating_enginecpe:2.3:a:jenkins:templating_engine:*:*:*:*:*:jenkins:*:* |
< 2.5.4 | 2.5.4 |
| OSV | Maven | org.jenkins-ci.plugins:templating-engine | < 2.5.4 | 2.5.4 |
References
- https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-31722 · ADVISORY
- https://github.com/jenkinsci/templating-engine-plugin/commit/bb2b4468b3bf4cea494afb8549af4e6450972653 · WEB
- https://github.com/jenkinsci/templating-engine-plugin · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 2 Apr 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 Apr 2025)