CVE-2013-6397 Improper Limitation of a Pathname to a Restricted Directory in Apache Solr
Remote attackers can read arbitrary files via path traversal in Apache Solr when the XSLT response writer is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2013-6397?
CVE-2013-6397 is a medium-severity path traversal vulnerability in n/a, published on 7 Dec 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Directory traversal vulnerability in SolrResourceLoader in Apache Solr before 4.6 allows remote attackers to read arbitrary files via a .. (dot dot) or full pathname in the tr parameter to solr/select/, when the response writer (wt parameter) is set to XSLT. NOTE: this can be leveraged using a separate XXE (XML eXternal Entity) vulnerability to allow access to files across restricted network boundaries.
Weakness: CWE-22
Which versions are affected by CVE-2013-6397?
2 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 | 4.6.0 |
org.apache.solr:solr-core Maven | All versions | 4.6.0 |
Products include Apache Solr.
How do I fix CVE-2013-6397?
Upgrade org.apache.solr:solr-core to 4.6.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2013-6397 being exploited?
There is no known exploitation of CVE-2013-6397 in the wild and no public exploit code.
Other vulnerabilities in n/a
- 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-2013-6397, GHSA-j8qw-mwmv-28cg.