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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Jenkins Project | Jenkins Templating Engine Plugin | ≤ 2.5.3 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
h3raklez/CVE-2025-31722 ★ 0 · Mar 13, 2026
CVE-2025-31722 — Jenkins Templating Engine RCE
-
Nick6371/CVE-2025-31722 ★ 0 · Aug 8, 2025
Used to demo CVE-2025-31722.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.jenkins-ci.plugins:templating-engine | < 2.5.4 | 2.5.4 | GHSA-4vjp-327p-w4qv |
Advisories 1
- WID-SEC-2025-0689 Jenkins Plugins: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 2, 2025
References
- Jenkins Security Advisory 2025-04-02 vendor-advisory