CVE-2018-9159 Moderate severity vulnerability that affects com.sparkjava:spark-core
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.
| Package | Affected | Fixed in |
|---|---|---|
com.sparkjava:spark-core Maven | All versions | 2.7.2 |
com.sparkjava:spark-core Maven | All versions | 2.7.2 |
Linux distribution packages (1)
spark SUSE:Manager Server 3.1 | All versions | 2.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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-76qr-mmh8-cp8f, SUSE-SU-2018:2689-1.