CVE-2017-3163 Improper Limitation of a Pathname ('Path Traversal') in org.apache.solr:solr-core
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.solr:solr-core Maven | All versions | 5.5.4 |
org.apache.solr:solr-core Maven | All versions | 5.5.4 |
org.apache.solr:solr-core Maven | From 6.0.0 | 6.4.1 |
org.apache.solr:solr-core Maven | From 6.0.0 | 6.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.
Other vulnerabilities in Apache Solr
- CVE-2019-17558 Apache Solr VelocityResponseWriter Plug-In Remote Code Execution
- CVE-2019-0193 Apache Solr DataImportHandler Code Injection
- CVE-2024-45216 Apache Solr: Authentication bypass possible using a fake URL Path ending
- CVE-2021-44548 Apache Solr information disclosure vulnerability through DataImportHandler
- CVE-2021-27905 SSRF vulnerability with the Replication handler
Sources
Also known as DEBIAN-CVE-2017-3163, DLA-1046-1, GHSA-387v-84cv-9qmc, UBUNTU-CVE-2017-3163.