CVE-2019-1003001
Jenkins Groovy Plugin sandbox bypass vulnerability
Description
Jenkins Script Security sandbox protection could be circumvented during the script compilation phase by applying AST transforming annotations such as @Grab to source code elements.
Both the pipeline validation REST APIs and actual script/pipeline execution are affected.
This allowed users with Overall/Read permission, or able to control Jenkinsfile or sandboxed Pipeline shared library contents in SCM, to bypass the sandbox protection and execute arbitrary code on the Jenkins controller.
All known unsafe AST transformations in Groovy are now prohibited in sandboxed scripts.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » pipeline-model-definition | < 1.3.4.1 | 1.3.4.1 |
| org.jenkins-ci.plugins » script-security | < 1.50 | 1.50 |
| org.jenkins-ci.plugins.workflow » workflow-cps-parent | < 2.61.1 | 2.61.1 |
Blast radius
37% of the dependent artifacts (159) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,215 |
| 2 hops | 7,291 |
| 3 hops | 4,711 |
| 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-2019-1003001 | nvd.nist.gov |
| Web | jenkinsci/pipeline-model-definition-plugin commit 6d7884d | github.com |
| Web | jenkinsci/script-security-plugin commit 2c5122e | github.com |
| Web | jenkinsci/workflow-cps-plugin commit 66c3e7a | github.com |
| Web | errata/RHBA-2019:0326 | access.redhat.com |
| Web | errata/RHBA-2019:0327 | access.redhat.com |
| Web | security/advisory/2019-01-08 | jenkins.io |
| Web | exploits/46572 | exploit-db.com |
| Web | files/152132/Jenkins-ACL-Bypass-Metaprogramming-Remote-Code-Execution.html | packetstormsecurity.com |
| Web | db/modules/exploit/multi/http/jenkins_metaprogramming | rapid7.com |
