Jenkins Stapler Web Framework
Jenkins Stapler Web Framework Deserialization of Untrusted Data Vulnerability
A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153 and earlier, LTS 2.138.3 and earlier in stapler/core/src/main/java/org/kohsuke/stapler/MetaClass.java that allows attackers to invoke some methods on Java objects by accessing crafted URLs that were not intended to be invoked this way.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 2.138.4
Fixed in 2.138.4
from GitHub Security Advisory GHSA-hhpm-5cp2-hg4x
- >= 2.140, < 2.154
Fixed in 2.154
from GitHub Security Advisory GHSA-hhpm-5cp2-hg4x
Mitigation
Upgrade org.jenkins-ci.main:jenkins-core to 2.138.4 or later.
Upgrade org.jenkins-ci.main:jenkins-core to 2.154 or later.
Timeline
Days relative to CVE publicationFirst public PoC 163 days after publication; added to CISA KEV 3.2 years after publication. First PoC: Metasploit exploit: Jenkins ACL Bypass and Metaprogramming RCE (exploit/multi/http/jenkins_metaprogramming) (Metasploit, 22 May 2019).
PoC repositories
Found on GitHub.3 PoCs · 2 pending · 1 informational
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| smokeintheshell/CVE-2018-1000861 | 13 Sep 2023 +4.8 y | 0 | PoC |
| williams-surjanto/infrastructure_security | 6 Aug 2025 +6.7 y | 8 | PoC via PoC Index |
| CyberCTF/vulhub-jenkins-cve-2018-1000861 | 8 Oct 2026 +7.8 y | 0 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| adamyordan/cve-2019-1003000-jenkins-rce-poc | 15 Feb 2019 +67 d | 315 | Pending · repository exceeds size limit via PoC Index |
| 1NTheKut/CVE-2019-1003000_RCE-DETECTION | 24 Apr 2019 +135 d | 4 | Pending · repository exceeds size limit |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| orangetw/awesome-jenkins-rce-2019 | 8 May 2019 +149 d | 608 | Informational · list |
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.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Jenkins ACL Bypass and Metaprogramming RCE (exploit/multi/http/jenkins_metaprogramming) | 22 May 2019 | 14 Nov 2026 |
| nuclei template | nuclei template: Jenkins - Remote Command Injection | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 4 PoC reposGET /php/apt.gpg
- Seen in
- 1 repo: williams-surjanto/infrastructure_security
- Evidence
- williams-surjanto/infrastructure_security/02-vulnerability-analysis/01-intro-to-nuclei.md:310 williams-surjanto/infrastructure_security/02-vulnerability-analysis/02-patch-vulnerable-docker.md:20 williams-surjanto/infrastructure_security/02-vulnerability-analysis/02-patch-vulnerable-docker.md:58
GET /securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript
- Query
sandbox=truevalue=- Seen in
- 1 repo: smokeintheshell/CVE-2018-1000861
- Evidence
- smokeintheshell/CVE-2018-1000861/exploit.py:41
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/php/apt\.gpg(?:[?#].*)?$
(?i)^/securityRealm/user/admin/descriptorByName/org\.jenkinsci\.plugins\.scriptsecurity\.sandbox\.groovy\.SecureGroovyScript/checkScript\?(?:.*&)?sandbox=true.*value=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-1000861 Jenkins Jenkins Stapler Web Framework exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/php/apt.gpg"; reference:url,poc.griffinguard.io/cve/CVE-2018-1000861; classtype:web-application-attack; sid:9611367; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-1000861 Jenkins Jenkins Stapler Web Framework exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript"; http.uri; content:"sandbox=true"; http.uri; content:"value="; reference:url,poc.griffinguard.io/cve/CVE-2018-1000861; classtype:web-application-attack; sid:9483729; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Jenkins Jenkins Stapler Web Framework exploit attempt (CVE-2018-1000861)
id: gg-pocmon-cve-2018-1000861-9611367
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-1000861. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-1000861
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/php/apt.gpg'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2018.1000861
title: Jenkins Jenkins Stapler Web Framework exploit attempt (CVE-2018-1000861)
id: gg-pocmon-cve-2018-1000861-9483729
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-1000861. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-1000861
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript'
cs-uri-query|contains|all:
- 'sandbox=true'
- 'value='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2018.1000861