Improper Limitation of a Pathname to a Restricted Directory in Apache Solr
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.solr:solr-core | < 4.6.0 | 4.6.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-6397
- https://github.com/apache/lucene-solr/commit/da34b18cb3092df4972e2b6fa5178d1059923910
- https://github.com/apache/lucene-solr
- https://issues.apache.org/jira/browse/SOLR-4882
- https://web.archive.org/web/20170307173358/http://www.securityfocus.com/bid/63935
- http://lucene.apache.org/solr/4_6_0/changes/Changes.html
- http://rhn.redhat.com/errata/RHSA-2013-1844.html
- http://rhn.redhat.com/errata/RHSA-2014-0029.html
- http://www.agarri.fr/kom/archives/2013/11/27/compromising_an_unreachable_solr_server_with_cve-2013-6397/index.html
- http://www.openwall.com/lists/oss-security/2013/11/27/1
- Weakness (CWE)
CWE-22- Platform
- Java / Kotlin (Maven)
- Package
org.apache.solr:solr-core- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-j8qw-mwmv-28cg - CC BY 4.0
Vulnerability history: org.apache.solr:solr-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 31
- First → latest
- 10.2018 06.2026
- Without a fix
- 1
- Exploited in attacks
- 2
Severity breakdown
- Critical 4
- High 16
- Medium 10
- Low 1
Disclosures per year
- 2018: 5
- 2019: 3
- 2020: 2
- 2021: 1
- 2022: 11
- 2023: 0
- 2024: 4
- 2025: 2
- 2026: 3
-
Improper Limitation of a Pathname to a Restricted Directory in Apache Solr this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.