CVE-2017-7678 Moderate severity vulnerability that affects org.apache.spark:spark-core_2.10 and org.apache.spark:spark-core_2.11

Medium 6.1 Published Updated

Attackers can trick users into executing malicious scripts via reflected XSS in Apache Spark web UIs, potentially compromising client systems.

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-7678?

CVE-2017-7678 is a medium-severity cross-site scripting vulnerability in n/a, published on 12 Jul 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

In Apache Spark before 2.2.0, it is possible for an attacker to take advantage of a user's trust in the server to trick them into visiting a link that points to a shared Spark cluster and submits data including MHTML to the Spark master, or history server. This data, which could contain a script, would then be reflected back to the user and could be evaluated and executed by MS Windows-based clients. It is not an attack on Spark itself, but on the user, who may then execute the script inadvertently when viewing elements of the Spark web UIs.

Weakness: CWE-79

Which versions are affected by CVE-2017-7678?

4 open source packages ship an affected version, including org.apache.spark:spark-core_2.10 and org.apache.spark:spark-core_2.11. It affects 1 product.

PackageAffectedFixed in
org.apache.spark:spark-core_2.10 MavenAll versions2.2.0
org.apache.spark:spark-core_2.10 MavenAll versions2.2.0
org.apache.spark:spark-core_2.11 MavenAll versions2.2.0
org.apache.spark:spark-core_2.11 MavenAll versions2.2.0

Products include Apache Spark.

How do I fix CVE-2017-7678?

Upgrade org.apache.spark:spark-core_2.10 to 2.2.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-7678 being exploited?

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

Sources

Also known as GHSA-r34r-f84j-5x4x.

Is CVE-2017-7678 in your software?

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

Check your SBOMs for free