CVE-2018-8009 Path Traversal in Hadoop
Attackers can exploit zip slip flaws in Apache Hadoop to write files outside intended directories, potentially leading to code execution or data modification.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-8009?
CVE-2018-8009 is a high-severity path traversal vulnerability in Apache Hadoop, published on 13 Nov 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Apache Hadoop 3.1.0, 3.0.0-alpha to 3.0.2, 2.9.0 to 2.9.1, 2.8.0 to 2.8.4, 2.0.0-alpha to 2.7.6, 0.23.0 to 0.23.11 is exploitable via the zip slip vulnerability in places that accept a zip file.
Weakness: CWE-22
Which versions are affected by CVE-2018-8009?
10 open source packages ship an affected version, including org.apache.hadoop:hadoop-main. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.hadoop:hadoop-main Maven | All versions | 2.7.7 |
org.apache.hadoop:hadoop-main Maven | All versions | 2.7.7 |
org.apache.hadoop:hadoop-main Maven | From 2.8.0 | 2.8.5 |
org.apache.hadoop:hadoop-main Maven | From 2.8.0 | 2.8.5 |
org.apache.hadoop:hadoop-main Maven | From 2.9.0 | 2.9.2 |
org.apache.hadoop:hadoop-main Maven | From 2.9.0 | 2.9.2 |
4 more packages
org.apache.hadoop:hadoop-main Maven | From 3.0.0 | 3.0.3 |
org.apache.hadoop:hadoop-main Maven | From 3.0.0 | 3.0.3 |
org.apache.hadoop:hadoop-main Maven | From 3.1.0 | 3.1.1 |
org.apache.hadoop:hadoop-main Maven | From 3.1.0 | 3.1.1 |
Products include Apache Hadoop.
How do I fix CVE-2018-8009?
Upgrade org.apache.hadoop:hadoop-main to a fixed version for your release line: 2.7.7, 2.8.5, 2.9.2 or 3.0.3.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-8009 being exploited?
There is no known exploitation of CVE-2018-8009 in the wild and no public exploit code.
Other vulnerabilities in Apache Hadoop
- CVE-2022-25168 Command injection in org.apache.hadoop.fs.FileUtil.unTarUsingTar
- CVE-2021-37404 Heap buffer overflow in libhdfs native library
- CVE-2022-26612 Arbitrary file write in FileUtil#unpackEntries on Windows
- CVE-2019-17195 Improper Check for Unusual or Exceptional Conditions in Connect2id Nimbus JOSE+JWT
- CVE-2017-15718 Exposure of Sensitive Information in Hadoop
Sources
Also known as GHSA-6x48-j4x4-cqw3.