CVE-2025-31722: Code Injection

Published Apr 2, 2025
·
Updated

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.

Other sources

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.

GitHub

Affected Software

3 affected componentsFixes available
Jenkins Templating Engine Plugin<2.5.3
maven/org.jenkins-ci.plugins:templating-engine<2.5.4
2.5.4
Jenkins Templating Engine Jenkins<2.5.4

Event History

Apr 2, 2025
CVE Published
via MITRE·02:59 PM
Data Sourced
via MITRE·02:59 PM
Description
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:31 PM
Data Sourced
via GitHub·03:31 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-31722?

CVE-2025-31722 is classified as a critical vulnerability due to its potential to allow arbitrary code execution.

2

How do I fix CVE-2025-31722?

To fix CVE-2025-31722, upgrade the Jenkins Templating Engine Plugin to version 2.5.4 or later.

3

What types of access are required to exploit CVE-2025-31722?

An attacker needs Item/Configure permission to exploit CVE-2025-31722.

4

Which versions of the Jenkins Templating Engine Plugin are affected by CVE-2025-31722?

CVE-2025-31722 affects Jenkins Templating Engine Plugin versions up to and including 2.5.3.

5

What risk does CVE-2025-31722 pose to my Jenkins instance?

CVE-2025-31722 poses a risk of arbitrary code execution in the Jenkins controller JVM, compromising the entire system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203