ZeroHour

CVE-2019-1003030

KEV PoC large

Sandbox Bypass Enables RCE in Jenkins Pipeline: Groovy Plugin

CISA: Jenkins Matrix Project Plugin Remote Code Execution Vulnerability

CVSS 3.1
9.9 critical
EPSS
97%p100
Published
()
KEV added
AI analysis

A sandbox bypass vulnerability exists in Jenkins Pipeline: Groovy Plugin 2.63 and earlier, in the CpsGroovyShell.java component, allowing Groovy scripts to escape the plugin's intended script sandbox. It is triggered when a Jenkins controller executes a pipeline script that an attacker can control — for example, a low-privileged authenticated user with permission to define or edit a job's pipeline definition. Successful exploitation yields arbitrary code execution in the Jenkins master JVM, giving the attacker full control of the controller and, per the CVSS scope change, impact that extends to the wider Jenkins environment including connected build agents. Affected deployments include Jenkins controllers running the vulnerable plugin — CISA's KEV entry names the Matrix Project Plugin — as well as Jenkins distributed through Red Hat OpenShift Container Platform. The flaw is listed in CISA's Known Exploited Vulnerabilities catalog (added 2022-03-25), confirming in-the-wild exploitation, and EPSS of ~96.9% (100th percentile) indicates an extremely high probability of near-term exploitation.

What to do: Apply updates per vendor instructions (the CISA KEV required action), upgrading the Pipeline: Groovy Plugin to a version later than 2.63 and deploying updated Jenkins images where applicable (including Red Hat OpenShift Container Platform). Restrict which users can create or edit pipeline scripts, and audit job configurations for attacker-controlled or recently modified pipeline definitions. Because the flaw is KEV-listed and actively exploited, check controllers for signs of compromise, such as unexpected processes or build activity in the master JVM.

Affected
Jenkins (jenkinsci) Pipeline: Groovy Plugin2.63 and earlier (per CVE description; CISA KEV entry names the Matrix Project Plugin)
Jenkins (jenkinsci) Matrix Project Plugin (as named in CISA's affected-product listing)
Red Hat OpenShift Container Platform (ships affected Jenkins plugin components)
Estimated exposure
largetens of thousands of internet-exposed Jenkins controllers, out of hundreds of thousands of total installations running the bundled Pipeline: Groovy plugin — Pipeline: Groovy ships as part of the standard Pipeline toolchain bundled with modern Jenkins, so it is present on virtually all pipeline-capable Jenkins controllers (with the Red Hat OpenShift Container Platform distribution adding to the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
Affected
Jenkins Matrix Project Plugin
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
jenkinsredhat
Products
pipeline\, openshift container platform
Weakness
CWE-693
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

In the news