CVE-2017-3163 Improper Limitation of a Pathname ('Path Traversal') in org.apache.solr:solr-core

High 7.5 Published Updated

Attackers can read arbitrary files on the server via path traversal in the Index Replication feature if it is enabled and accessible.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-3163?

CVE-2017-3163 is a high-severity path traversal vulnerability in Apache Solr, published on 30 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

When using the Index Replication feature, Apache Solr nodes can pull index files from a master/leader node using an HTTP API which accepts a file name. However, Solr before 5.5.4 and 6.x before 6.4.1 did not validate the file name, hence it was possible to craft a special request involving path traversal, leaving any file readable to the Solr server process exposed. Solr servers protected and restricted by firewall rules and/or authentication would not be at risk since only trusted clients and users would gain direct HTTP access.

Weakness: CWE-22

Which versions are affected by CVE-2017-3163?

4 open source packages ship an affected version, including org.apache.solr:solr-core. It affects 1 product.

PackageAffectedFixed in
org.apache.solr:solr-core MavenAll versions5.5.4
org.apache.solr:solr-core MavenAll versions5.5.4
org.apache.solr:solr-core MavenFrom 6.0.06.4.1
org.apache.solr:solr-core MavenFrom 6.0.06.4.1

Products include Apache Solr.

How do I fix CVE-2017-3163?

Upgrade org.apache.solr:solr-core to a fixed version for your release line: 5.5.4 or 6.4.1.

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

Is CVE-2017-3163 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-3163, DLA-1046-1, GHSA-387v-84cv-9qmc, UBUNTU-CVE-2017-3163.

Is CVE-2017-3163 in your software?

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

Check your SBOMs for free