# CVE-2025-31722: Jenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-12-01)
- Published: 2025-04-02T14:59:50.726Z
- Modified: 2026-06-17T09:10:50.070Z
- Also known as: GHSA-4vjp-327p-w4qv
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: jenkins

## 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.

(As written by CVE List.)

## Affected

- Jenkins Project Jenkins Templating Engine Plugin: up to 2.5.3
- org.jenkins-ci.plugins:templating-engine (Maven): before 2.5.4
- jenkins templating_engine: before 2.5.4

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2025-31722](https://www.cve.org/CVERecord?id=CVE-2025-31722), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-4vjp-327p-w4qv](https://github.com/advisories/GHSA-4vjp-327p-w4qv), CC-BY-4.0, modified 2025-04-02
- NVD: [CVE-2025-31722](https://nvd.nist.gov/vuln/detail/CVE-2025-31722), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31722 · Whole record: https://cve.day/CVE-2025-31722.json · Rebuilt by cve.day 2026-11-25T22:58:55.956Z
