Lucene search

K
redhatcveRedhat.comRH:CVE-2024-34145
HistoryMay 03, 2024 - 8:53 a.m.

CVE-2024-34145

2024-05-0308:53:45
redhat.com
access.redhat.com
4
cve-2024-34145
jenkins
script security plugin
sandbox bypass
security restrictions
pipelines
arbitrary code
groovy classes
fixed version
enhanced restrictions

7.5 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.1%

A sandbox bypass vulnerability was found in the Jenkins Script Security Plugin within the sandbox-defined classes, enabling the circumvention of security restrictions. This flaw allows authenticated attackers to define and execute sandboxed scripts, including Pipelines, bypassing sandbox protection mechanisms and executing arbitrary code within the context of the Jenkins controller JVM. The Script Security Plugin features a sandbox functionality designed to enable users with limited privileges to create scripts, including Pipelines, which are generally safe for execution. This security mechanism intercepts calls within sandboxed scripts, referencing various allowlists to decide whether these calls should be permitted. The vulnerabilities that allow for sandbox bypass have been identified in versions up to 1335.vf07d9ce377a_e of the Script Security Plugin. These vulnerabilities include: - Exploiting crafted constructor bodies that trigger other constructors, thereby allowing the construction of any subclassable type through implicit casts. - Utilizing Groovy classes defined within the sandbox that overshadow certain non-sandboxed classes, facilitating the creation of any subclassable type. These vulnerabilities enable attackers, who have the permission to create and execute sandboxed scripts including Pipelines, to circumvent sandbox protections and execute arbitrary code within the context of the Jenkins controller JVM. The fixed version of this script incorporates enhanced restrictions and sanity checks. These improvements ensure that calls to super constructors are intercepted by the sandbox, including: - Ensuring that calls to other constructors via ‘this’ are now appropriately managed within the sandbox. - No longer overlooking classes in packages that may be overshadowed by Groovy-defined classes when intercepting super constructor calls.

7.5 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.1%