CVE-2024-52012: Apache Solr: Configset upload on Windows allows arbitrary path write-access

Published Jan 26, 2025
·
Updated

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

3 affected componentsFixes available
Apache Solr>=6.6<9.7.0
maven/org.apache.solr:solr-core>=6.6<9.8.0
9.8.0
Apache Solr>=6.6.0<9.8.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.solr:solr-core to a version that resolves this vulnerability.

    Fixed in 9.8.0
  2. Upgrade

    Upgrade Apache Solr to a version that resolves this vulnerability.

    Fixed in 9.8.0
  3. 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

Jan 27, 2025
CVE Published
via MITRE·08:54 AM
Data Sourced
via MITRE·08:54 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 AM
DescriptionWeakness
Advisory Published
via GitHub·09:30 AM
Data Sourced
via GitHub·09:30 AM
DescriptionWeaknessAffected Software
Advisory Published
via GitHub·05:22 PM
Feb 3, 2025
News Published
via The Hacker News·11:59 AM
Feb 6, 2025
Data Sourced
via NVD·05:15 PM
Severity
Jun 27, 2025
Data Sourced
via NVD·07:32 PM
Affected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2024-52012?

To fix CVE-2024-52012, upgrade Apache Solr to version 9.8.0 or later.

3

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.

4

What kind of vulnerability is CVE-2024-52012?

CVE-2024-52012 is a relative path traversal vulnerability caused by improper input sanitation.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203