CVE-2020-2135
Sandbox bypass vulnerability in Script Security Plugin
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » script-security | < 1.71 | 1.71 |
Blast radius
37% of the dependent artifacts (185) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,226 |
| 2 hops | 9,760 |
| 3 hops | 5,468 |
| 4 hops | 1,011 |
| 5 hops | 73 |
| 6 hops | 183 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-job470 usages
- org.jenkins-ci.plugins.workflow » workflow-cps439 usages
- org.jenkins-ci.plugins.workflow » workflow-basic-steps325 usages
- org.jenkins-ci.plugins.workflow » workflow-durable-task-step294 usages
- org.jenkins-ci.plugins » junit256 usages
- org.jenkins-ci.plugins.workflow » workflow-support253 usages
- org.jenkins-ci.plugins » git227 usages
- org.jenkins-ci.plugins » matrix-project204 usages
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » token-macro134 usages
- org.jenkins-ci.plugins » mailer132 usages
- org.jenkins-ci.plugins.workflow » workflow-multibranch110 usages
- io.jenkins » configuration-as-code108 usages
- org.jenkins-ci.main » jenkins-test-harness99 usages
- org.jenkins-ci.plugins » job-dsl71 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2020-2135 | nvd.nist.gov |
| Package | jenkinsci/script-security-plugin | github.com |
| Web | jenkinsci/script-security-plugin commit 5b1969e | github.com |
| Web | security/advisory/2020-03-09 | jenkins.io |
| Web | lists/oss-security/2020/03/09/1 | openwall.com |
