CVE-2018-8009 Path Traversal in Hadoop

High 8.8 Published Updated

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.

PackageAffectedFixed in
org.apache.hadoop:hadoop-main MavenAll versions2.7.7
org.apache.hadoop:hadoop-main MavenAll versions2.7.7
org.apache.hadoop:hadoop-main MavenFrom 2.8.02.8.5
org.apache.hadoop:hadoop-main MavenFrom 2.8.02.8.5
org.apache.hadoop:hadoop-main MavenFrom 2.9.02.9.2
org.apache.hadoop:hadoop-main MavenFrom 2.9.02.9.2
4 more packages
org.apache.hadoop:hadoop-main MavenFrom 3.0.03.0.3
org.apache.hadoop:hadoop-main MavenFrom 3.0.03.0.3
org.apache.hadoop:hadoop-main MavenFrom 3.1.03.1.1
org.apache.hadoop:hadoop-main MavenFrom 3.1.03.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.

Sources

Also known as GHSA-6x48-j4x4-cqw3.

Is CVE-2018-8009 in your software?

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

Check your SBOMs for free