CVE-2018-1000861: Remote Code Execution in Jenkins Stapler Web Framework
- Vendors
- JenkinsRed Hat
CVE-2018-1000861 is a code execution vulnerability in the Stapler web framework used by Jenkins weekly versions 2.153 and earlier and LTS versions 2.138.3 and earlier. Improper restrictions on request routing in Stapler's MetaClass implementation allow crafted URLs to invoke methods on Java objects that were not intended to be exposed as web endpoints. Access to these unintended methods can enable remote code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the confidentiality, integrity, and availability of the Jenkins controller through code execution with the Jenkins process's privileges. Observed exploitation by Watchbog deployed cryptocurrency miners and established scheduled-task persistence, consuming server resources and maintaining unauthorized access.
Mitigation
If you can’t patch tonight, do this now.
Until an upgrade is possible, remove public exposure of Jenkins and restrict access to trusted users and networks through network access controls or an authenticated access gateway. Restrict unnecessary outbound access to payload-hosting services as defense in depth; this does not correct the vulnerable request routing.
Remediation
Patch, then assume compromise.
Upgrade Jenkins core to LTS version 2.138.4 or later, or weekly version 2.154 or later. For current deployments, migrate to a maintained release containing these fixes.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2018-1000861 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Feb 10, 2022.
- Is there a public exploit for CVE-2018-1000861?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2018-1000861, the earliest disclosed Jan 8, 2019.
- Is there a patch for CVE-2018-1000861?
- Upgrade Jenkins core to LTS version 2.138.4 or later, or weekly version 2.154 or later. For current deployments, migrate to a maintained release containing these fixes.
- What products are affected by CVE-2018-1000861?
- Jenkins and Red Hat Openshift Container Platform.
- How severe is CVE-2018-1000861?
- CVE-2018-1000861 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 98.3% (100th percentile) as of Nov 19, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.