GHSA-2g4q-9vm9-9fw4
Jenkins Script Security Plugin sandbox bypass vulnerability
Quick fix
GHSA-2g4q-9vm9-9fw4 — org.jenkins-ci.plugins:script-security: upgrade to the fixed version with the command below.
# pom.xml: bump <version>1336.vf33a</version> for org.jenkins-ci.plugins:script-securityDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1336.vf33a# pom.xml: bump <version>1336.vf33a</version> for org.jenkins-ci.plugins:script-securityReferences
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/org.jenkins-ci.plugins/script-security"]}'