CVE-2018-1000861: Remote code execution in Jenkins Stapler web framework
- Vendors
- JenkinsRed Hat
CVE-2018-1000861 is a remote code execution vulnerability in the Stapler web framework used by Jenkins weekly releases through 2.153 and LTS releases through 2.138.3. The vulnerability involves Stapler's MetaClass implementation and allows crafted URLs to invoke Java object methods that were not intended to be accessible through web requests. These unintended method invocations can lead to code execution. Watchbog exploited the vulnerability to deploy cryptocurrency-mining malware.
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 enables remote code execution on the Jenkins server. Observed Watchbog attacks executed malicious shell scripts, deployed the XMRig cryptocurrency miner, and established persistence through scheduled tasks. These attacks consumed server resources and maintained unauthorized scheduled execution. The available information does not establish the execution identity, privilege level, or extent of accessible sensitive data.
Mitigation
If you can’t patch tonight, do this now.
Restrict Jenkins network access to trusted users and systems rather than exposing internal services directly to the public Internet. Apply access controls and authentication. Blocking unnecessary access to external payload-hosting services can disrupt the observed malware delivery chain, but does not correct the vulnerability.
Remediation
Patch, then assume compromise.
Upgrade Jenkins core to LTS version 2.138.4 or later, or weekly version 2.154 or later.
Exploits
2 exploits validated by Mallory's analysis.
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 Oct 16, 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.
- 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 Oct 16, 2026.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.