WaratekVRT Sign in

CVE-2018-9159 Spark

Affected softwareSpark
Severity5.3 Medium CVSS 3.0 2 scores
Fixed in2.7.2
WeaknessPath traversal (CWE-22)
Published31 Mar 2018
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 8 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 4.4% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.
Candidate fix https://github.com/perwendel/spark/commit/030e9d00125cbd1ad759668f85488aba1019c668 : a commit: the change itself

How to mitigate CVE-2018-9159

Upgrade Spark to 2.7.2 or later. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

5.3 MEDIUM v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 5.3 MEDIUM CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N NVD Primary published
CVSS 2.0 5.0 none AV:N/AC:L/Au:N/C:P/I:N/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.sparkjava:spark-core 0 2.7.2 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv com.sparkjava spark-core generic < 2.7.2
nvd sparkjava spark generic < 2.7.2

References

URLTags
https://github.com/perwendel/spark/commit/030e9d00125cbd1ad759668f85488aba1019c668 commit
https://github.com/perwendel/spark/issues/981 WEB
https://github.com/perwendel/spark/commit/a221a864db28eb736d36041df2fa6eb8839fc5cd WEB
https://github.com/perwendel/spark/commit/ce9e11517eca69e58ed4378d1e47a02bd06863cc WEB
https://access.redhat.com/errata/RHSA-2018:2020 WEB
https://access.redhat.com/errata/RHSA-2018:2405 WEB
https://github.com/advisories/GHSA-76qr-mmh8-cp8f ADVISORY
https://github.com/perwendel/spark PACKAGE
http://sparkjava.com/news#spark-272-released WEB

Timeline

Published2018-03-31By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.