Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-4vjp-327p-w4qv: Jenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution

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.

ghsa
#vulnerability#git#java#maven
  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. CVE-2025-31722

Jenkins Templating Engine Plugin Vulnerable to Arbitrary Code Execution

High severity GitHub Reviewed Published Apr 2, 2025 to the GitHub Advisory Database • Updated Apr 2, 2025

Package

maven org.jenkins-ci.plugins:templating-engine (Maven)

Affected versions

< 2.5.4

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.

References

  • https://nvd.nist.gov/vuln/detail/CVE-2025-31722
  • https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505
  • jenkinsci/templating-engine-plugin@bb2b446

Published to the GitHub Advisory Database

Apr 2, 2025

ghsa: Latest News

GHSA-9fwj-9mjf-rhj3: laravel-auth0 SDK Vulnerable to Brute Force Authentication Tags of CookieStore Sessions