CVE-2018-9159 Moderate severity vulnerability that affects com.sparkjava:spark-core

Medium 5.3 Published Updated

Remote attackers can read unintended static files via path traversal in the Spark Java library, exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-9159?

CVE-2018-9159 is a medium-severity path traversal vulnerability in n/a, published on 31 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Spark before 2.7.2, a remote attacker can read unintended static files via various representations of absolute or relative pathnames, as demonstrated by file: URLs and directory traversal sequences. NOTE: this product is unrelated to Ignite Realtime Spark.

Weakness: CWE-22

Which versions are affected by CVE-2018-9159?

2 open source packages ship an affected version, including com.sparkjava:spark-core. It affects 1 product.

PackageAffectedFixed in
com.sparkjava:spark-core MavenAll versions2.7.2
com.sparkjava:spark-core MavenAll versions2.7.2
Linux distribution packages (1)
spark SUSE:Manager Server 3.1All versions2.3-3.3.1

Products include Sparkjava Spark.

How do I fix CVE-2018-9159?

Upgrade com.sparkjava:spark-core to 2.7.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-9159 being exploited?

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

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-76qr-mmh8-cp8f, SUSE-SU-2018:2689-1.

Is CVE-2018-9159 in your software?

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

Check your SBOMs for free