{"id":"CVE-2024-52012","summary":"Apache Solr: Configset upload on Windows allows arbitrary path write-access","details":"Relative Path Traversal vulnerability in Apache Solr.\n\nSolr 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.  \nThis issue affects Apache Solr: from 6.6 through 9.7.0.\n\nUsers 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.","aliases":["BIT-solr-2024-52012","GHSA-4p5m-gvpf-f3x5"],"modified":"2026-08-12T14:51:55.461923Z","published":"2025-01-27T08:54:42.907Z","related":["CGA-m5x2-c7h8-p8h2"],"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"},{"source":"DESCRIPTION","extracted_events":[{"introduced":"6.6"},{"fixed":"9.7.0"}]}]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/01/26/2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52012.json"},{"type":"ADVISORY","url":"https://lists.apache.org/thread/yp39pgbv4vf1746pf5yblz84lv30vfxd"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52012"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/solr","events":[{"introduced":"5c7a7b65d2aa7ce5ec96458315c661a18b320241"},{"fixed":"8bf0100e502ade4b8161e4b90f762b117a6ef442"}],"database_specific":{"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_modified":"2026-08-12T14:51:55Z","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"}},{"target":{"file":"solr/core/src/test/org/apache/solr/handler/admin/api/ClusterPropsAPITest.java"},"deprecated":false,"digest":{"threshold":0.9,"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"]},"id":"CVE-2024-52012-c56f4a82","signature_type":"Line","signature_version":"v1","source":"https://github.com/apache/solr/commit/8bf0100e502ade4b8161e4b90f762b117a6ef442"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"}]}