CVE-2018-1999002 Improper Input Validation in Jenkins
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.main:jenkins-core Maven | All versions | 2.121.2 |
org.jenkins-ci.main:jenkins-core Maven | All versions | 2.121.2 |
org.jenkins-ci.main:jenkins-core Maven | From 2.122 | 2.132 |
org.jenkins-ci.main:jenkins-core Maven | From 2.122 | 2.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.
Other vulnerabilities in Jenkins Jenkins
- CVE-2024-23897 Jenkins Command Line Interface (CLI) Path Traversal
- CVE-2018-1000861 Jenkins Stapler Web Framework Deserialization of Untrusted Data
- 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
Sources
Also known as GHSA-qf38-f2fr-q4x9.