CVE-2016-9177 Spark allows remote attackers to read arbitrary files via a .. (dot dot) in the URI

High 7.5 Published Updated

Remote attackers can read arbitrary files via directory traversal in Spark, potentially 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-2016-9177?

CVE-2016-9177 is a high-severity path traversal vulnerability in n/a, published on 4 Nov 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in Spark 2.5 allows remote attackers to read arbitrary files via a .. (dot dot) in the URI.

Weakness: CWE-22

Which versions are affected by CVE-2016-9177?

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.5.2
com.sparkjava:spark-core MavenAll versions2.5.2

Products include Sparkjava Spark.

How do I fix CVE-2016-9177?

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

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

Is CVE-2016-9177 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-89gc-6cw6-4vch.

Is CVE-2016-9177 in your software?

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

Check your SBOMs for free