CVE-2019-1003001 Jenkins Groovy Plugin sandbox bypass vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins.workflow:workflow-cps-parent Maven | All versions | 2.61.1 |
org.jenkins-ci.plugins.workflow:workflow-cps-parent Maven | All versions | 2.61.1 |
org.jenkins-ci.plugins:pipeline-model-definition Maven | All versions | 1.3.4.1 |
org.jenkins-ci.plugins:pipeline-model-definition Maven | All versions | 1.3.4.1 |
org.jenkins-ci.plugins:script-security Maven | All versions | 1.50 |
org.jenkins-ci.plugins:script-security Maven | All versions | 1.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.
Other vulnerabilities in Redhat Openshift Container Platform
- CVE-2019-1003030 Jenkins Matrix Project Plugin Remote Code Execution
- CVE-2022-43402 Jenkins Pipeline: Groovy Plugin allows sandbox protection bypass and arbitrary code execution
- CVE-2019-1003041 Sandbox bypass vulnerability in Jenkins Pipeline: Groovy Plugin
- CVE-2022-43407 CSRF protection for any URL can be bypassed in Jenkins Pipeline: Input Step Plugin
- CVE-2022-25173 Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Groovy Plugin
Sources
Also known as GHSA-6q78-6xvr-26fg.