ZeroHour

CVE-2024-52012

moderate

Zipslip Path Traversal in Apache Solr Configset Upload on Windows

CVSS 3.1
5.4 medium
EPSS
47%p99
Published
()
Modified
AI analysis

CVE-2024-52012 is a relative path traversal ('zipslip') flaw in the 'configset upload' API of Apache Solr, which fails to sanitize file paths inside uploaded ZIP archives. An attacker with low-privileged authenticated access (per the CVSS 3.1 vector's PR:L) can upload a maliciously crafted ZIP whose relative filepaths escape the intended directory and write files to unanticipated parts of the filesystem; this affects only Solr instances running on Windows. Successful exploitation grants arbitrary write access anywhere the Solr process can write, enabling tampering with configuration or other files that could lead to further compromise; the CVSS 3.1 score is 5.4 (medium) with low confidentiality and integrity impact. All Apache Solr versions from 6.6 through 9.7.0 on Windows are affected, and the issue is fixed in version 9.8.0. No public proof-of-concept or in-the-wild exploitation is known and it is not in CISA KEV, but the EPSS score of 47.2% (99th percentile) indicates a high predicted likelihood of exploitation within 30 days.

What to do: Upgrade Apache Solr to version 9.8.0, which fixes the issue. If upgrading is not immediately possible, use Solr's Rule-Based Authentication Plugin to restrict access to the configset upload API so only trusted administrators can reach it. Inventory Windows-hosted Solr instances and verify who can authenticate to and invoke the configset upload API, since exploitation requires low-privileged API access.

Affected
Apache Solr6.6 through 9.7.0 (instances running on Windows); fixed in 9.8.0
Estimated exposure
moderateon the order of 10,000+ internet-exposed Apache Solr instances, with only the Windows subset affected (Linux deployments are not impacted) — Public internet scans (e.g., Shodan/Censys) typically index tens of thousands of exposed Apache Solr services, but only Windows-hosted instances with the configset upload API reachable to authenticated users are affected, which narrows the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

Vendors
apache
Products
solr
Weakness
CWE-23
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

In the news