🛡️ CVE-2024-34144 — script-security
Description
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.
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](https://www.jenkins.io/security/advisory/2022-10-19/#SECURITY-2824%20(1)).
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
CVE-2024-34144 is classified as CWE-693: Protection Mechanism Failure. A protection exists but does not cover the case at hand, so it can be worked around.
Affected software
CVE-2024-34144 is recorded against 2 packages.
- org.jenkins-ci.plugins:script-security (fixed in 1336.vf33a)
- script-security (fixed in 1335.vf07d9ce377a_e)
Timeline and source
Published on 2 May 2024 and last revised on 7 August 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
nvd.nist.gov (Advisory)
github.com (Package)
github.com (Web)
www.jenkins.io (Web)
www.openwall.com (Web)
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins:script-security | — | 1336.vf33a |
| script-security | — | 1335.vf07d9ce377a_e |
References
Similar Threats
- High CVE-2019-16538
- High CVE-2019-10355
- High CVE-2019-10356
- Unknown CVE-2019-10393
- Unknown CVE-2019-10394
More CVE 2024 advisories
Browse all of CVE 2024 in the advisory index.
Exploit Protection
Are you running script-security?
CVE-2024-34144 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2024-34144 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.