CVE-2019-1003030 Jenkins Matrix Project Plugin Remote Code Execution
Attackers controlling pipeline scripts can bypass the sandbox to execute arbitrary code on the Jenkins master JVM.
- Exploited in the wild
- Since 25 Mar 2022
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-1003030?
CVE-2019-1003030 is a critical vulnerability in Redhat Openshift Container Platform, published on 8 Mar 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 Pipeline: Groovy Plugin 2.63 and earlier in pom.xml, src/main/java/org/jenkinsci/plugins/workflow/cps/CpsGroovyShell.java that allows attackers able to control pipeline scripts to execute arbitrary code on the Jenkins master JVM.
Weakness: CWE-693
Which versions are affected by CVE-2019-1003030?
2 open source packages ship an affected version, including org.jenkins-ci.plugins.workflow:workflow-cps. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins.workflow:workflow-cps Maven | All versions | 2.64 |
org.jenkins-ci.plugins.workflow:workflow-cps Maven | All versions | 2.64 |
Products include Jenkins Pipeline\, Redhat Openshift Container Platform.
How do I fix CVE-2019-1003030?
Upgrade org.jenkins-ci.plugins.workflow:workflow-cps to 2.64 or later. US federal agencies must fix it by 15 Apr 2022.
Is CVE-2019-1003030 being exploited?
Yes. Attackers have exploited CVE-2019-1003030 in the wild since at least 25 Mar 2022.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.
Other vulnerabilities in Redhat Openshift Container Platform
- 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
- CVE-2022-25174 Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Shared Groovy Libraries Plugin
Sources
Also known as GHSA-r6mc-mrvr-23cr.