CVE-2024-34144: Jenkins Script Security Plugin has sandbox bypass vulnerability involving crafted constructor bodies
Jenkins Script Security Plugin provides a sandbox feature that allows low privileged users to define scripts, including Pipelines, that are generally safe to execute. Calls to code defined inside a sandboxed script are intercepted, and various allowlists are checked to determine whether the call is to be allowed.
Published May 2, 2024 · Updated Jul 3, 2024
Affected packages
org.jenkins-ci.plugins:script-security
- Ecosystem
- Maven
- Affected
- < 1336.vf33a
- Fixed in
- 1336.vf33a
- Check
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins:script-security
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Jenkins Script Security Plugin provides a sandbox feature that allows low privileged users to define scripts, including Pipelines, that are generally safe to execute. Calls to code defined inside a sandboxed script are intercepted, and various allowlists are checked to determine whether the call is to be allowed.
Multiple sandbox bypass vulnerabilities exist in Script Security Plugin 1335.vf07d9ce377a_e and earlier:
- Crafted constructor bodies that invoke other constructors can be used to construct any subclassable type via implicit casts.
- Sandbox-defined Groovy classes that shadow specific non-sandbox-defined classes can be used to construct any subclassable type.
These vulnerabilities allow attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
- These issues are caused by an incomplete fix of SECURITY-2824).
Script Security Plugin 1336.vf33a_a_9863911 has additional restrictions and sanity checks to ensure that super constructors cannot be constructed without being intercepted by the sandbox:
- Calls to to other constructors using this are now intercepted by the sandbox.
- Classes in packages that can be shadowed by Groovy-defined classes are no longer ignored by the sandbox when intercepting super constructor calls.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-57280
Jenkins Script Security Plugin sandbox bypass vulnerability
high8.8Jun 24, 2026CVE-2026-57281
Jenkins Script Security Plugin has a script security bypass vulnerability
high7.5Jun 24, 2026CVE-2026-42519
Jenkins Script Security Plugin: Missing permission checks allow enumeration of pending and approved classpaths
medium4.3Apr 29, 2026CVE-2024-52549
Missing permission check in Jenkins Script Security Plugin
medium4.3Nov 13, 2024CVE-2024-34145
Jenkins Script Security Plugin sandbox bypass vulnerability
high8.8May 2, 2024
