CVE-2018-1000861 Jenkins Stapler Web Framework Deserialization of Untrusted Data

Exploited in the wild Critical 9.8 Published Updated

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.

PackageAffectedFixed in
org.jenkins-ci.main:jenkins-core MavenAll versions2.138.4
org.jenkins-ci.main:jenkins-core MavenAll versions2.138.4
org.jenkins-ci.main:jenkins-core MavenFrom 2.1402.154
org.jenkins-ci.main:jenkins-core MavenFrom 2.1402.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.

All Jenkins Jenkins vulnerabilities

Sources

Also known as GHSA-hhpm-5cp2-hg4x.

Is CVE-2018-1000861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free