KeygraphLabs · CVE MCP

CVE-2018-9159 · mitre

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.

Published 2018-03-31, last changed 2026-06-17. Weakness: CWE-22.

CVSS
5.3
medium, from NVD
EPSS
4.45%
percentile 91.7%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: com.sparkjava:spark-core 2.7.2 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in perwendel/spark by 030e9d0012, a221a864db, ce9e11517e. Functions changed by the fix: ClassPathResource, doesNotContainFileColon, isValid, isInvalidPath, equals, getPath, exists, getInputStream, getURL, createRelative. Regression tests: src/test/java/spark/embeddedserver/jetty/EmbeddedJettyFactoryTest.java, src/test/java/spark/examples/staticresources/StaticResources.java. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2018-03-31Published
2018-10-19Package advisory GHSA-76qr-mmh8-cp8f
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 4.45%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-76qr-mmh8-cp8fcom.sparkjava:spark-core (Maven)2.7.2

Also known as: GHSA-76qr-mmh8-cp8f

Related

CVEPublishedCVSSSummary
CVE-2016-91772016-11-047.5same package: com.sparkjava:spark-core (Maven)
CVE-2026-1383402026-11-296.5same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-1173732026-11-116.5same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-386002026-11-039.8same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-385952026-11-039.8same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-1171272026-11-027.5same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-1171832026-10-307.5same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-519122026-10-299.8same weakness (CWE-22) from the same CNA (mitre)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2018-9159, or call /api/v1/vulnerabilities/CVE-2018-9159. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org