CVE-2017-3162 Improper Input Validation in Apache Hadoop
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.hadoop:hadoop-client Maven | All versions | 2.7.0 |
org.apache.hadoop:hadoop-client Maven | All versions | 2.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.
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-pr9x-qmp5-j3rr.