CVE-2024-52012

Source
https://cve.org/CVERecord?id=CVE-2024-52012
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52012.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-52012
Aliases
Downstream
CGA (10)
Related
Published
2025-01-27T08:54:42Z
Modified
2026-08-12T14:51:55Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Apache Solr: Configset upload on Windows allows arbitrary path write-access
Details

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.

Database specific
{
    "cna_assigner":  "apache",
    "cwe_ids":  [
        "CWE-23"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52012.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "introduced":  "6.6"
                },
                {
                    "last_affected":  "9.7.0"
                }
            ],
            "source":  "AFFECTED_FIELD"
        },
        {
            "extracted_events":  [
                {
                    "introduced":  "6.6"
                },
                {
                    "fixed":  "9.7.0"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/apache/solr

Affected ranges

Type
GIT
Repo
https://github.com/apache/solr
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "6.6.0"
        },
        {
            "fixed":  "9.8.0"
        }
    ],
    "source":  "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52012.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "114706963459088109660833768287011109610",
            "length":  1690
        },
        "id":  "CVE-2024-52012-495e81ce",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/apache/solr/commit/8bf0100e502ade4b8161e4b90f762b117a6ef442",
        "target":  {
            "file":  "solr/core/src/test/org/apache/solr/handler/admin/api/ClusterPropsAPITest.java",
            "function":  "testClusterPropertyOpsAllGood"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "227201535978736786206395139306940375933",
                "91085031996923862926847820075269637534",
                "95646977120126659623611833678333745411",
                "238204442998170897429532280916413152879",
                "198649011477978013163628311288064556824",
                "328210542085849057591937403998537023228",
                "123287827351828105329922716193912786102",
                "295705926250400481165930075178287165655",
                "141972444644839413803464882258388860286",
                "272901030627583534647644849400198484748",
                "158750648081260747857351577240384615465",
                "135496039483632738501033687540975352891",
                "332207999864647919101618942534714158513",
                "152619453501534221135416103390837462009",
                "266105027950455896321479894904896139829",
                "246170138035325403316954910666367468538",
                "238909833240713053126710267635690316133",
                "200611271890895091005937735611291766704",
                "315919783280472340445209513279121239195",
                "171973857726852767256864955852932409493",
                "31867556265343678332447711898798915441",
                "81976241246331177622188585244787938260",
                "2460566327329349116673757688153309293",
                "47941292642154921327193008964974226955"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2024-52012-c56f4a82",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/apache/solr/commit/8bf0100e502ade4b8161e4b90f762b117a6ef442",
        "target":  {
            "file":  "solr/core/src/test/org/apache/solr/handler/admin/api/ClusterPropsAPITest.java"
        }
    }
]
vanir_signatures_modified
"2026-08-12T14:51:55Z"