CVE-2019-1003034 Script security sandbox bypass in Jenkins Job DSL Plugin

Critical 9.9 Published Updated

Attackers with control over Job DSL definitions can execute arbitrary code on the Jenkins master JVM via a sandbox bypass.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-1003034?

CVE-2019-1003034 is a critical code injection vulnerability in Redhat Openshift Container Platform, published on 8 Mar 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A sandbox bypass vulnerability exists in Jenkins Job DSL Plugin 1.71 and earlier in job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/AbstractDslScriptLoader.groovy, job-dsl-plugin/build.gradle, job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/JobDslWhitelist.groovy, job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/SandboxDslScriptLoader.groovy that allows attackers with control over Job DSL definitions to execute arbitrary code on the Jenkins master JVM.

Which versions are affected by CVE-2019-1003034?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:job-dsl. It affects 2 products.

PackageAffectedFixed in
org.jenkins-ci.plugins:job-dsl MavenAll versions1.72
org.jenkins-ci.plugins:job-dsl MavenAll versions1.72

Products include Jenkins Job Dsl, Redhat Openshift Container Platform.

How do I fix CVE-2019-1003034?

Upgrade org.jenkins-ci.plugins:job-dsl to 1.72 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-1003034 being exploited?

There is no known exploitation of CVE-2019-1003034 in the wild and no public exploit code.

Sources

Also known as GHSA-5r74-pgmq-92mm.

Is CVE-2019-1003034 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free