CVE-2019-1003002 Jenkins Pipeline Declarative Plugin sandbox bypass vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkinsci.plugins:pipeline-model-definition Maven | All versions | 1.3.4.1 |
org.jenkinsci.plugins:pipeline-model-definition Maven | All versions | 1.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.
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-x6jx-cxg3-mggh.