HIGH 8.8

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)

ArtifactAffected versionsFixed 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

1affected artifacts
81affected versions
425dependent artifacts (est.)
14,865dependent versions

37% of the dependent artifacts (159) still pull an affected version in their latest release.

DepthDependent versions
Direct
2,215
2 hops
7,291
3 hops
4,711
4 hops
636
5 hops
12

Most used dependents

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.