CVE-2018-1999002 Improper Input Validation in Jenkins

High 7.5 Published Updated

Attackers can read arbitrary files on the Jenkins master file system via crafted HTTP requests in the Stapler framework.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1999002?

CVE-2018-1999002 is a high-severity path traversal vulnerability in Jenkins Jenkins, published on 23 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A arbitrary file read vulnerability exists in Jenkins 2.132 and earlier, 2.121.1 and earlier in the Stapler web framework's org/kohsuke/stapler/Stapler.java that allows attackers to send crafted HTTP requests returning the contents of any file on the Jenkins master file system that the Jenkins master has access to.

Which versions are affected by CVE-2018-1999002?

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.121.2
org.jenkins-ci.main:jenkins-core MavenAll versions2.121.2
org.jenkins-ci.main:jenkins-core MavenFrom 2.1222.132
org.jenkins-ci.main:jenkins-core MavenFrom 2.1222.132

Products include Jenkins Jenkins, Oracle Communications Cloud Native Core Automated Test Suite.

How do I fix CVE-2018-1999002?

Upgrade org.jenkins-ci.main:jenkins-core to a fixed version for your release line: 2.121.2 or 2.132.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-1999002 being exploited?

There is no known exploitation of CVE-2018-1999002 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry and 3 proofs of concept on GitHub.

All Jenkins Jenkins vulnerabilities

Sources

Also known as GHSA-qf38-f2fr-q4x9.

Is CVE-2018-1999002 in your software?

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

Check your SBOMs for free