CVE-2017-3161 Improper Neutralization of Input During Web Page Generation in Apache Hadoop
An attacker can execute arbitrary scripts in the HDFS web UI via an unescaped query parameter, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-3161?
CVE-2017-3161 is a medium-severity cross-site scripting vulnerability in Apache Hadoop, published on 26 Apr 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The HDFS web UI in Apache Hadoop before 2.7.0 is vulnerable to a cross-site scripting (XSS) attack through an unescaped query parameter.
Weakness: CWE-79
Which versions are affected by CVE-2017-3161?
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-3161?
Upgrade org.apache.hadoop:hadoop-client to 2.7.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-3161 being exploited?
There is no known exploitation of CVE-2017-3161 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-qm7f-r83w-3p46.