GHSA-gj3q-p8cm-26rm
Sandbox bypass vulnerability in Script Security Plugin
Quick fix
GHSA-gj3q-p8cm-26rm — org.jenkins-ci.plugins:script-security: upgrade to the fixed version with the command below.
# pom.xml: bump <version>1.7.1</version> for org.jenkins-ci.plugins:script-securityDetails
Sandbox protection in Script Security Plugin 1.70 and earlier can be circumvented through: - Crafted constructor calls and bodies (due to an incomplete fix of [SECURITY-582](https://www.jenkins.io/security/advisory/2017-08-07/#super-constructor-calls)) - Crafted method calls on objects that implement `GroovyInterceptable`
This allows attackers able to specify and run sandboxed scripts to execute arbitrary code in the context of the Jenkins controller JVM.
Script Security Plugin 1.71 has additional restrictions and sanity checks to ensure that super constructors cannot be constructed without being intercepted by the sandbox. In addition, it also intercepts method calls on objects that implement `GroovyInterceptable` as calls to `GroovyObject#invokeMethod(String, Object)`, which is on the list of dangerous signatures and should not be approved for use in the sandbox.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.7.1# pom.xml: bump <version>1.7.1</version> for org.jenkins-ci.plugins:script-securityReferences
- https://nvd.nist.gov/vuln/detail/CVE-2020-2134[ADVISORY]
- https://github.com/jenkinsci/script-security-plugin/commit/5b1969e0bdf5cde04a165b847144756b28495788[WEB]
- https://github.com/jenkinsci/script-security-plugin[PACKAGE]
- https://jenkins.io/security/advisory/2020-03-09/#SECURITY-1754[WEB]
- http://www.openwall.com/lists/oss-security/2020/03/09/1[WEB]
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"]}'