CVE-2019-1003001 Jenkins Groovy Plugin sandbox bypass vulnerability

High 8.8 Published Updated

Attackers with read permissions can execute arbitrary code on the Jenkins master by submitting malicious pipeline scripts via an HTTP endpoint.

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-1003001?

CVE-2019-1003001 is a high-severity code injection vulnerability in Redhat Openshift Container Platform, published on 22 Jan 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 Pipeline: Groovy Plugin 2.61 and earlier in src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition.java, src/main/java/org/jenkinsci/plugins/workflow/cps/CpsGroovyShellFactory.java that allows attackers with Overall/Read permission to provide a pipeline script to an HTTP endpoint that can result in arbitrary code execution on the Jenkins master JVM.

Which versions are affected by CVE-2019-1003001?

6 open source packages ship an affected version, including org.jenkins-ci.plugins.workflow:workflow-cps-parent, org.jenkins-ci.plugins:pipeline-model-definition and org.jenkins-ci.plugins:script-security. It affects 2 products.

PackageAffectedFixed in
org.jenkins-ci.plugins.workflow:workflow-cps-parent MavenAll versions2.61.1
org.jenkins-ci.plugins.workflow:workflow-cps-parent MavenAll versions2.61.1
org.jenkins-ci.plugins:pipeline-model-definition MavenAll versions1.3.4.1
org.jenkins-ci.plugins:pipeline-model-definition MavenAll versions1.3.4.1
org.jenkins-ci.plugins:script-security MavenAll versions1.50
org.jenkins-ci.plugins:script-security MavenAll versions1.50

Products include Jenkins Pipeline\, Redhat Openshift Container Platform.

How do I fix CVE-2019-1003001?

Upgrade org.jenkins-ci.plugins.workflow:workflow-cps-parent to 2.61.1 or later.

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

Is CVE-2019-1003001 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-1003001 exists.

Public exploit code: 1 Metasploit module and 3 Exploit-DB entries.

All Redhat Openshift Container Platform vulnerabilities

Sources

Also known as GHSA-6q78-6xvr-26fg.

Is CVE-2019-1003001 in your software?

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

Check your SBOMs for free