Jenkins Matrix Project Plugin Remote Code Execution
CVE-2019-1003030 is a critical-severity protection mechanism failure vulnerability in Jenkins Pipeline: Groovy Plugin from Jenkins, with a CVSS 3.1 base score of 9.9 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected Jenkins Pipeline: Groovy Plugin versions: 2.63 and earlier. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on March 25, 2022, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Check which version of Jenkins Pipeline: Groovy Plugin you run against the affected versions below, and install the vendor's latest release.
- CISA's required action: Apply updates per vendor instructions.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Jenkins project | Jenkins Pipeline: Groovy Plugin | 2.63 and earlier | Not stated |
| Jenkins | Pipeline | 2.63 and earlier | Not stated |
| Red Hat | Openshift Container Platform | 3.11 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.9 | Critical | NVD |
| CVSS 3.1 | 9.9 | Critical | CISA (ADP) |
| CVSS 2.0 | 6.5 | Medium | NVD |
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Protection Mechanism Failure
The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
- access.redhat.com/errata/RHSA-2019:0739Third Party Advisory
- jenkins.io/security/advisory/2019-03-06/#SECURITY-1336%20%282%29Third Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-1003030US Government Resource
Technical write-ups (may include proof of concept)
- packetstormsecurity.com/files/159603/Jenkins-2.63-Sandbox-Bypass.htmlExploit, Third Party Advisory, VDB Entry
Other vulnerabilities in Jenkins Pipeline: Groovy Plugin
- 8.0 High severity
- 8.8 High severity
Recent Protection Mechanism Failure vulnerabilities
- 10.0 High severity
Oracle Java SE Unspecified Exploited
- 5.0 Medium severity
Oracle JRE Sandbox Bypass Exploited
Spotted an error? Tell us.