CVE-2019-1003002 Jenkins Pipeline Declarative Plugin sandbox bypass vulnerability

High 8.8 Published Updated

Attackers with read permissions can execute arbitrary code on the Jenkins master via a sandbox bypass in the Pipeline Declarative plugin.

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

CVE-2019-1003002 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: Declarative Plugin 1.3.3 and earlier in pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/Converter.groovy 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-1003002?

2 open source packages ship an affected version, including org.jenkinsci.plugins:pipeline-model-definition. It affects 2 products.

PackageAffectedFixed in
org.jenkinsci.plugins:pipeline-model-definition MavenAll versions1.3.4.1
org.jenkinsci.plugins:pipeline-model-definition MavenAll versions1.3.4.1

Products include Jenkins Pipeline\, Redhat Openshift Container Platform.

How do I fix CVE-2019-1003002?

Upgrade org.jenkinsci.plugins:pipeline-model-definition to 1.3.4.1 or later.

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

Is CVE-2019-1003002 being exploited?

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

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

All Redhat Openshift Container Platform vulnerabilities

Sources

Also known as GHSA-x6jx-cxg3-mggh.

Is CVE-2019-1003002 in your software?

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

Check your SBOMs for free