CVE-2017-3161 Improper Neutralization of Input During Web Page Generation in Apache Hadoop

Medium 6.1 Published Updated

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.

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-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.

Sources

Also known as GHSA-qm7f-r83w-3p46.

Is CVE-2017-3161 in your software?

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

Check your SBOMs for free