CVE-2024-52012: Apache Solr: Configset upload on Windows allows arbitrary path write-access
Relative Path Traversal vulnerability in Apache Solr.
Solr instances running on Windows are vulnerable to arbitrary filepath write-access, due to a lack of input-sanitation in the "configset upload" API. Commonly known as a "zipslip", maliciously constructed ZIP files can use relative filepaths to write data to unanticipated parts of the filesystem. This issue affects Apache Solr: from 6.6 through 9.7.0.
Users are recommended to upgrade to version 9.8.0, which fixes the issue. Users unable to upgrade may also safely prevent the issue by using Solr's "Rule-Based Authentication Plugin" to restrict access to the configset upload API, so that it can only be accessed by a trusted set of administrators/users.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.solr:solr-coreto a version that resolves this vulnerability.Fixed in 9.8.0 - Upgrade
Upgrade
Apache Solrto a version that resolves this vulnerability.Fixed in 9.8.0 - Configuration
Restrict access to the configset upload API to a trusted set of administrators/users.
Solr Rule-Based Authentication Plugin access to the configset upload API = trusted administrators/users only
Event History
Frequently Asked Questions
What is the severity of CVE-2024-52012?
CVE-2024-52012 is considered a high severity vulnerability due to its potential for arbitrary file writes.
How do I fix CVE-2024-52012?
To fix CVE-2024-52012, upgrade Apache Solr to version 9.8.0 or later.
Which versions of Apache Solr are affected by CVE-2024-52012?
CVE-2024-52012 affects Apache Solr versions from 6.6.0 up to 9.7.0.
What kind of vulnerability is CVE-2024-52012?
CVE-2024-52012 is a relative path traversal vulnerability caused by improper input sanitation.
What can attackers achieve through CVE-2024-52012?
Attackers can exploit CVE-2024-52012 to write arbitrary files on the server running vulnerable Solr instances.