cbcvebase.
CVE-2019-1003030
published 2019-03-08

CVE-2019-1003030: A sandbox bypass vulnerability exists in Jenkins Pipeline: Groovy Plugin 2.63 and earlier in pom.xml…

PriorityP195critical9.9CVSS 3.1
AVNACLPRLUINSCCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2022-04-15
Exploited in the wild
EPSS
97.06%
99.9th percentile
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.

Affected

20 ranges
VendorProductVersion rangeFixed in
jenkinsappdynamics_dashboard_plugin——
jenkinsazure_vm_agents_plugin——
jenkinsazure_vm_in_azure_vm_agents_plugin——
jenkinsbitbar_run-in-cloud_plugin——
jenkinscredentials_plugin——
jenkinsdeploy_plugin——
jenkinsemail_extension_plugin——
jenkinsgroovy_plugin——
jenkinsids_in_azure_vm_agents_plugin——
jenkinsids_to_allow_administrators_configuring_the_plugin——
jenkinsjob_dsl_plugin——
jenkinsmatrix_project_plugin——
jenkinspipeline<= 2.63—
jenkinsrabbit-mq_publisher_plugin——
jenkinsrabbitmq_in_rabbit-mq_publisher_plugin——
jenkinsrepository_connector_plugin——
jenkinsscript_security_plugin——
jenkinsthis_allowed_users_able_to_control_the_plugin——
jenkins_projectjenkins_pipeline_groovy_plugin——
redhatopenshift_container_platform——

Detection & IOCsextracted from sources · hover to see the quote

url/jenkinselj/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript?sandbox=true&value=public class x {↗
path/jenkinselj/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript↗
command"ping -c 1 xx.xx.xx.xx".execute()↗
bytes↗
%70%75%62%6c%69%63%20%63%6c%61%73%73%20%78%20%7b%0a%20%20%70%75%62%6c%69%63%20%78%28%29%7b%0a%22%70%69%6e%67%20%2d%63%20%31%20%78%78%2e%78%78%2e%78%78%2e%78%78%22%2e%65%78%65%63%75%74%65%28%29%0a%7d%0a%7d
  • →Monitor HTTP GET requests targeting the Jenkins endpoint path containing 'SecureGroovyScript/checkScript' with query parameters 'sandbox=true' — this is the specific attack vector used to trigger the sandbox bypass. ↗
  • →Detect Groovy script payloads containing '.execute()' calls submitted via the checkScript endpoint, which is the mechanism used to achieve RCE on the Jenkins master JVM. ↗
  • →The vulnerability is triggered during parsing, compilation, and script instantiation phases — alert on crafted Groovy scripts submitted to pipeline jobs that escape sandbox protection via CpsGroovyShell.java. ↗
  • →Flag URL-encoded Groovy class definitions (e.g. '%70%75%62%6c%69%63%20%63%6c%61%73%73') in HTTP request parameters to Jenkins endpoints, as attackers URL-encode payloads to evade basic string matching. ↗
  • ·The exploit path prefix '/jenkinselj/' appears to be a site-specific Jenkins context root used in the PoC; in real deployments the context root may differ (e.g. '/' or '/jenkins/'). Detection rules should match on the invariant portion 'securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript'. ↗
  • ·The JSESSIONID cookie value in the PoC ('JSESSIONID.4495c8e0=node01jguwrtw481dx1bf3gaoq5o6no32.node0') is session-specific and will vary per target; do not use it as a static IOC but note the '.nodeX' suffix pattern as characteristic of Jenkins clustered session cookies. ↗
  • ·The affected source files are pom.xml and src/main/java/org/jenkinsci/plugins/workflow/cps/CpsGroovyShell.java in Pipeline: Groovy Plugin 2.63 and earlier; the fix was delivered via RHSA-2019:0739 for OpenShift 3.11 but several older OpenShift versions are listed as 'Will not fix'. ↗

CVSS provenance

nvdv3.19.9CRITICALCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
nvdv2.06.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:P
vulncheck9.9CRITICAL
cisa9.9CRITICAL
vendor_redhat9.9CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.