CVE-2017-3162 Improper Input Validation in Apache Hadoop

High 7.3 Published Updated

An attacker can browse the HDFS namespace via an unvalidated NameNode query parameter in the DataNode servlet, potentially exposing directory structures.

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

What is CVE-2017-3162?

CVE-2017-3162 is a high-severity path traversal vulnerability in Apache Hadoop, published on 26 Apr 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

HDFS clients interact with a servlet on the DataNode to browse the HDFS namespace. The NameNode is provided as a query parameter that is not validated in Apache Hadoop before 2.7.0.

Weakness: CWE-20

Which versions are affected by CVE-2017-3162?

2 open source packages ship an affected version, including org.apache.hadoop:hadoop-client. It affects 1 product.

PackageAffectedFixed in
org.apache.hadoop:hadoop-client MavenAll versions2.7.0
org.apache.hadoop:hadoop-client MavenAll versions2.7.0

Products include Apache Hadoop.

How do I fix CVE-2017-3162?

Upgrade org.apache.hadoop:hadoop-client to 2.7.0 or later.

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

Is CVE-2017-3162 being exploited?

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

Sources

Also known as GHSA-pr9x-qmp5-j3rr.

Is CVE-2017-3162 in your software?

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

Check your SBOMs for free