PoC Monitor
← All CVEs
CVE-2018-1000861published 10 Dec 2018 14:00 UTCData: JSON · API

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.

First public PoC 163 daysafter publication · 22 May 2019 · Metasploit
Public PoCs53 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-502
CISA KEV 10 Feb 20223.2 years after publication

Affected versions and mitigation

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

Affected

org.jenkins-ci.main:jenkins-core (Maven)
  • < 2.138.4

Fixed in 2.138.4

from GitHub Security Advisory GHSA-hhpm-5cp2-hg4x

org.jenkins-ci.main:jenkins-core (Maven)
  • >= 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 publication
t=0+180+360+540+720+900+1080CVE published10 Dec 2018 · t = 0First public PoC22 May 2019 · t+163dAdded to CISA KEV10 Feb 2022 · t+3.2y

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.

PoC characteristics

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

GET /securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript

Query
sandbox=true value=
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.

GET /php/apt.gpg
(?i)^/php/apt\.gpg(?:[?#].*)?$
GET /securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript
(?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.

GET /php/apt.gpg
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;)
GET /securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript
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.

GET /php/apt.gpg
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
GET /securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript
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