HIGH 8.8

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)

ArtifactAffected versionsFixed in
org.jenkinsci.plugins » pipeline-model-definition
< 1.3.4.1
1.3.4.1

Blast radius

1affected artifacts
46affected versions
48dependent artifacts (est.)
2,908dependent versions

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

DepthDependent versions
Direct
802
2 hops
2,063
3 hops
43

Most used dependents

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.