Path Traversal in Sparkjava Spark
CVE-2018-9159
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.044, 91.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- shoucheng3/perwendel__spark_CVE-2018-9159_2_7_2_fixed (last pushed 2025-09-06)
- shoucheng3/perwendel__spark_CVE-2018-9159_2-7-1 (last pushed 2025-08-20)
Also mentioned in 6 other repositories (AmiraliSajadi/iris-fork, ARPSyndicate/cvemon, iris-sast/cwe-bench-java, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/perwendel/spark/issues/981 (Third Party Advisory, Issue Tracking)
- github.com/perwendel/spark/commit/a221a864db28eb736d36041df2fa6eb8839fc5cd (Patch, Third Party Advisory)
- RHSA-2018:2020 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2405 (vendor-advisory, Third Party Advisory)
- github.com/perwendel/spark/commit/ce9e11517eca69e58ed4378d1e47a02bd06863cc (Patch, Third Party Advisory)
- sparkjava.com/news (Vendor Advisory)
- github.com/perwendel/spark/commit/030e9d00125cbd1ad759668f85488aba1019c668 (Patch, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.