CVE-2019-1003005 Sandbox Bypass in Script Security Plugin

High 8.8 Published Updated

Attackers with read permissions can execute arbitrary code on the Jenkins master via a sandbox bypass in the Script Security 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-1003005?

CVE-2019-1003005 is a high-severity code injection vulnerability in Jenkins Script Security 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 Script Security Plugin 1.50 and earlier in src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SecureGroovyScript.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.

Which versions are affected by CVE-2019-1003005?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:script-security MavenAll versions1.51
org.jenkins-ci.plugins:script-security MavenAll versions1.51

Products include Jenkins Script Security.

How do I fix CVE-2019-1003005?

Upgrade org.jenkins-ci.plugins:script-security to 1.51 or later.

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

Is CVE-2019-1003005 being exploited?

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

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-x5jm-rj37-5qh7.

Is CVE-2019-1003005 in your software?

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

Check your SBOMs for free