Lucene search

K
githubGitHub Advisory DatabaseGHSA-2G4Q-9VM9-9FW4
HistoryMay 02, 2024 - 3:30 p.m.

Jenkins Script Security Plugin sandbox bypass vulnerability

2024-05-0215:30:35
GitHub Advisory Database
github.com
6
jenkins
script security plugin
sandbox
vulnerability
bypass
arbitrary code
jenkins controller jvm

7.8 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%

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.

Affected configurations

Vulners
Node
github_advisory_databaseorg.jenkins-ci.plugins\Matchscript-security

7.8 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%