Loading HuntDB...

GHSA-2g4q-9vm9-9fw4

GitHub Security Advisory

Jenkins Script Security Plugin sandbox bypass vulnerability

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

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 Packages

Maven org.jenkins-ci.plugins:script-security
Affected versions: 0 (fixed in 1336.vf33a)

Related CVEs

Key Information

GHSA ID
GHSA-2g4q-9vm9-9fw4
Published
May 2, 2024 3:30 PM
Last Modified
July 3, 2024 8:10 PM
CVSS Score
7.5 /10
Primary Ecosystem
Maven
Primary Package
org.jenkins-ci.plugins:script-security
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 3, 2025 6:26 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.