CVE-2018-1000866
Jenkins Script Security and Pipeline Groovy Plugins Sandbox Bypass
Description
A sandbox bypass vulnerability exists in Pipeline: Groovy Plugin 2.59 and earlier in groovy-sandbox/src/main/java/org/kohsuke/groovy/sandbox/SandboxTransformer.java, groovy-cps/lib/src/main/java/com/cloudbees/groovy/cps/SandboxCpsTransformer.java that allows attackers with Job/Configure permission, or unauthorized attackers with SCM commit privileges and corresponding pipelines based on Jenkinsfiles set up in Jenkins, to execute arbitrary code on the Jenkins master JVM
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » script-security | < 1.48 | 1.48 |
| org.jenkins-ci.plugins.workflow » workflow-cps | < 2.60 | 2.60 |
Blast radius
52% of the dependent artifacts (223) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 4,774 |
| 2 hops | 10,848 |
| 3 hops | 5,092 |
| 4 hops | 636 |
| 5 hops | 12 |
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-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
- org.jenkinsci.plugins » pipeline-model-definition68 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-2018-1000866 | nvd.nist.gov |
| Web | jenkinsci/script-security-plugin commit 16c862a | github.com |
| Web | jenkinsci/workflow-cps-plugin commit 0eb89aa | github.com |
| Web | jenkinsci/workflow-cps-plugin commit e1c56eb | github.com |
| Web | errata/RHBA-2019:0326 | access.redhat.com |
| Web | errata/RHBA-2019:0327 | access.redhat.com |
| Web | security/advisory/2018-10-29 | jenkins.io |
