CVE-2018-8024 Exposure of Sensitive Information to an Unauthorized Actor in Apache Spark via crafted URL

Medium 5.4 Published Updated

A malicious user can trick victims into visiting a crafted URL to execute scripts and expose Spark UI information, primarily affecting Firefox users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-8024?

CVE-2018-8024 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 12 Jul 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In Apache Spark 2.1.0 to 2.1.2, 2.2.0 to 2.2.1, and 2.3.0, it's possible for a malicious user to construct a URL pointing to a Spark cluster's UI's job and stage info pages, and if a user can be tricked into accessing the URL, can be used to cause script to execute and expose information from the user's view of the Spark UI. While some browsers like recent versions of Chrome and Safari are able to block this type of attack, current versions of Firefox (and possibly others) do not.

Weakness: CWE-200

Which versions are affected by CVE-2018-8024?

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

PackageAffectedFixed in
org.apache.spark:spark-core_2.11 MavenFrom 2.1.02.1.3
org.apache.spark:spark-core_2.11 MavenFrom 2.1.02.1.3
org.apache.spark:spark-core_2.11 MavenFrom 2.2.02.2.2
org.apache.spark:spark-core_2.11 MavenFrom 2.2.02.2.2
org.apache.spark:spark-core_2.11 MavenFrom 2.3.02.3.1
org.apache.spark:spark-core_2.11 MavenFrom 2.3.02.3.1
4 more packages
org.apache.spark:spark-core_2.10 MavenFrom 2.1.02.1.3
org.apache.spark:spark-core_2.10 MavenFrom 2.1.02.1.3
org.apache.spark:spark-core_2.10 MavenFrom 2.2.02.2.2
org.apache.spark:spark-core_2.10 MavenFrom 2.2.02.2.2

Products include Apache Spark, Mozilla Firefox.

How do I fix CVE-2018-8024?

Upgrade org.apache.spark:spark-core_2.11 to a fixed version for your release line: 2.1.3, 2.2.2 or 2.3.1.

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-2018-8024 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-8024 exists.

Public exploit code: 1 Nuclei template.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-8cw6-5qvp-q3wj.

Is CVE-2018-8024 in your software?

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

Check your SBOMs for free