GitHub Advisoryadvisory · Maven
GHSA-gj3q-p8cm-26rm Sandbox bypass vulnerability in Script Security Plugin
HIGH
Official page ↗
- Aliases
- CVE-2020-2134
- Ecosystem
- Maven
- Packages
- org.jenkins-ci.plugins:script-security
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-693, CWE-863
- Reviewed
- 2023-01-14
Affected packages
• Maven org.jenkins-ci.plugins:script-security: < 1.7.1 → fixed in 1.7.1
Description
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)
• 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.
Related
Alias · CVE (1)
- CVE-2020-2134 Sandbox protection in Jenkins Script Security Plugin 1.70 and earlier could be circumvented through crafted constructor calls and crafted… vulnerability
References
- 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