CVE-2024-52012
Apache Solr: Configset upload on Windows allows arbitrary path write-access
Reported by apache · Published January 27, 2025
solr-core is fixed in 9.8.0 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.solr:solr-core | Maven Central | 9.8.0 |
| solr | Bitnami | 9.8.0 |
| Apache Solr | Apache Software Foundation | 9.7.0 |
| solr | apache | 9.8.0 |
| solr | Bitnami | 9.8.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Solr | 6.6 |
| Maven | org.apache.solr:solr-core | 6.6 |
| Apache Software Foundation | Apache Solr | 6.6 |
| chainguard | solr | * |
| wolfi | solr | * |
Timeline
- Jan 26, 2025 PoC Published (8 in total, the first dated here)
- Jan 26, 2025 CVE Published
- Jan 28, 2025 EPSS Score (30 in total, the first dated here)
- Feb 6, 2025 Coalition ESS Score (15 in total, the first dated here)
- Feb 6, 2025 CVE Updated
- Jun 1, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-52012
vulnetix vdb fixes CVE-2024-52012
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-52012/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisory
- http://www.openwall.com/lists/oss-security/2025/01/26/2 url
- https://nvd.nist.gov/vuln/detail/CVE-2024-52012 advisory
- https://github.com/advisories/GHSA-4p5m-gvpf-f3x5 advisory
- https://github.com/apache/solr/commit/5795edd143b8fcb2ffaf7f278a099b8678adf396 patch
- https://github.com/apache/solr url
- https://issues.apache.org/jira/browse/SOLR-17543 url