CVE-2019-1003002
Jenkins Pipeline Declarative 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 (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkinsci.plugins » pipeline-model-definition | < 1.3.4.1 | 1.3.4.1 |
Blast radius
27% of the dependent artifacts (13) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 802 |
| 2 hops | 2,063 |
| 3 hops | 43 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- io.jenkins.blueocean » blueocean-events4 usages
- io.jenkins.plugins » pipeline-as-yaml4 usages
- io.jenkins.blueocean » blueocean3 usages
- io.jenkins.blueocean » blueocean-dashboard3 usages
- io.jenkins.blueocean » blueocean-github-pipeline2 usages
- io.jenkins.blueocean » blueocean-git-pipeline2 usages
- io.jenkins.blueocean » blueocean-personalization2 usages
- org.jenkins-ci.plugins » p42 usages
- io.jenkins.blueocean » blueocean-pipeline-editor1 usages
- io.jenkins.blueocean » blueocean-bitbucket-pipeline1 usages
- io.jenkins.blueocean » blueocean-executor-info1 usages
- org.jenkins-ci.plugins » jira-steps1 usages
- io.jenkins.plugins » atlassian-bitbucket-server-integration1 usages
Computed from the dependency graph of build 20261201.0702 (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-1003002 | nvd.nist.gov |
| Web | jenkinsci/pipeline-model-definition-plugin commit 083abd9 | 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 |
