CVE-2025-31722
Jenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| maven | org.jenkins-ci.plugins:templating-engine | < 2.5.4 | 2.5.4 |
Betroffene Produkte · Jenkins
| Produkt | Betroffene Versionen |
|---|---|
| Templating Engine | vor 2.5.4 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505
- https://github.com/advisories/GHSA-4vjp-327p-w4qv
- https://nvd.nist.gov/vuln/detail/CVE-2025-31722
- https://github.com/jenkinsci/templating-engine-plugin/commit/bb2b4468b3bf4cea494afb8549af4e6450972653