PoC Monitor
← All CVEs
CVE-2019-1003030published 8 Mar 2019 21:00 UTCData: JSON · API

Jenkins project Jenkins Pipeline: Groovy Plugin

Jenkins Matrix Project Plugin Remote Code Execution Vulnerability

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.

First public PoC 1.6 yearsafter publication · 19 Oct 2020 · Exploit-DB
Public PoCs53 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.9critical · scored by CISA ADP · CWE-693
CISA KEV 25 Mar 20223.0 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

org.jenkins-ci.plugins.workflow:workflow-cps (Maven)
  • < 2.64

Fixed in 2.64

from GitHub Security Advisory GHSA-r6mc-mrvr-23cr

Mitigation

Upgrade org.jenkins-ci.plugins.workflow:workflow-cps to 2.64 or later.

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900+1080CVE published8 Mar 2019 · t = 0First public PoC19 Oct 2020 · t+1.6yAdded to CISA KEV25 Mar 2022 · t+3.0y

First public PoC 1.6 years after publication; added to CISA KEV 3.0 years after publication. First PoC: Jenkins 2.63 - Sandbox bypass in pipeline: Groovy plug-in (Exploit-DB, 19 Oct 2020).

PoC repositories

Found on GitHub.

3 PoCs

PoCs 3
RepositoryCreatedStarsAssessment
Cashiuus/jenkins-checkscript-rce 24 Nov 2021 +2.7 y 0 PoC
overgrowncarrot1/CVE-2019-1003030 1 Mar 2025 +6.0 y 1 PoC
cyberbelly/PoC-CVE-2019-1003030 11 Jul 2026 +7.3 y 0 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
Exploit-DBJenkins 2.63 - Sandbox bypass in pipeline: Groovy plug-in19 Oct 202014 Nov 2026
nuclei templatenuclei template: Jenkins Pipeline Groovy Plugin <=2.63 - Insecure Deserialization17 Aug 202614 Nov 2026

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

POST /descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript/

Key headers
Jenkins-Crumb: 2dfbaca9596a1bcbcf54a1101591e827
Body markers
sandbox=True value=class abcd{{abcd(){{def proc=" value=class abcd{abcd() in application/x-www-form-urlencoded
Ports
8080
Seen in
1 repo: Cashiuus/jenkins-checkscript-rce
Evidence
Cashiuus/jenkins-checkscript-rce/jenkins-checkscript-rce.py:97 Cashiuus/jenkins-checkscript-rce/jenkins-checkscript-rce.py:15

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /crumbIssuer/api/json
(?i)^/crumbIssuer/api/json(?:[?#].*)?$
POST /descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript/
(?i)^/descriptorByName/org\.jenkinsci\.plugins\.scriptsecurity\.sandbox\.groovy\.SecureGroovyScript/checkScript/(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /crumbIssuer/api/json
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2019-1003030 Jenkins project Jenkins Pipeline: Groovy Plugin exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/crumbIssuer/api/json"; reference:url,poc.griffinguard.io/cve/CVE-2019-1003030; classtype:web-application-attack; sid:9823071; rev:1;)
POST /descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript/
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2019-1003030 Jenkins project Jenkins Pipeline: Groovy Plugin exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript/"; http.header; content:"Jenkins-Crumb: 2dfbaca9596a1bcbcf54a1101591e827"; nocase; http.request_body; content:"sandbox=True"; http.request_body; content:"value=class abcd{{abcd(){{def proc=|22|"; http.request_body; content:"value=class abcd{abcd()"; reference:url,poc.griffinguard.io/cve/CVE-2019-1003030; classtype:web-application-attack; sid:9854806; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /crumbIssuer/api/json
title: Jenkins project Jenkins Pipeline: Groovy Plugin exploit attempt (CVE-2019-1003030)
id: gg-pocmon-cve-2019-1003030-9823071
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-1003030. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-1003030
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/crumbIssuer/api/json'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.1003030
POST /descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript/
title: Jenkins project Jenkins Pipeline: Groovy Plugin exploit attempt (CVE-2019-1003030)
id: gg-pocmon-cve-2019-1003030-9854806
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-1003030. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-1003030
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.1003030