CVE-2018-1000861 Jenkins Stapler Web Framework Deserialization of Untrusted Data
Attackers can execute arbitrary code on Jenkins servers by crafting malicious URLs that exploit the Stapler web framework.
- Exploited in the wild
- Since 10 Feb 2022
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-1000861?
CVE-2018-1000861 is a critical code injection vulnerability in Jenkins Jenkins, published on 10 Dec 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-502
Which versions are affected by CVE-2018-1000861?
4 open source packages ship an affected version, including org.jenkins-ci.main:jenkins-core. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.main:jenkins-core Maven | All versions | 2.138.4 |
org.jenkins-ci.main:jenkins-core Maven | All versions | 2.138.4 |
org.jenkins-ci.main:jenkins-core Maven | From 2.140 | 2.154 |
org.jenkins-ci.main:jenkins-core Maven | From 2.140 | 2.154 |
Products include Jenkins Jenkins, Redhat Openshift Container Platform.
How do I fix CVE-2018-1000861?
Upgrade org.jenkins-ci.main:jenkins-core to a fixed version for your release line: 2.138.4 or 2.154. US federal agencies must fix it by 10 Aug 2022.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-1000861 being exploited?
Yes. Attackers have exploited CVE-2018-1000861 in the wild since at least 10 Feb 2022.
Public exploit code: 1 Metasploit module, 1 Nuclei template and 3 proofs of concept on GitHub.
Other vulnerabilities in Jenkins Jenkins
- CVE-2024-23897 Jenkins Command Line Interface (CLI) Path Traversal
- CVE-2017-1000353 Jenkins Remote Code Execution
- CVE-2015-5317 Jenkins User Interface (UI) Information Disclosure
- CVE-2021-21690 Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins
- CVE-2021-21691 Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins
Sources
Also known as GHSA-hhpm-5cp2-hg4x.