CVE-2019-1003006 Jenkins Groovy Plugin sandbox bypass vulnerability

High 8.8 Published Updated

Attackers with read permissions can execute arbitrary code on the Jenkins master via a Groovy script injection in the 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-1003006?

CVE-2019-1003006 is a high-severity code injection vulnerability in Jenkins Groovy Plugin, published on 6 Feb 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 Groovy Plugin 2.0 and earlier in src/main/java/hudson/plugins/groovy/StringScriptSource.java that allows attackers with Overall/Read permission to provide a Groovy script to an HTTP endpoint that can result in arbitrary code execution on the Jenkins master JVM.

Weakness: CWE-862

Which versions are affected by CVE-2019-1003006?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:groovy. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:groovy MavenAll versions2.1
org.jenkins-ci.plugins:groovy MavenAll versions2.1

Products include Jenkins Groovy.

How do I fix CVE-2019-1003006?

Upgrade org.jenkins-ci.plugins:groovy to 2.1 or later.

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

Is CVE-2019-1003006 being exploited?

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

Sources

Also known as GHSA-xfwj-2f34-32f5.

Is CVE-2019-1003006 in your software?

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

Check your SBOMs for free