MODERATE 5.4

CVE-2024-52012

Apache Solr Relative Path Traversal vulnerability

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.solr » solr-core
>= 6.6, < 9.8.0
9.8.0

Blast radius

1affected artifacts
1,597affected versions
638dependent artifacts (est.)
86,863dependent versions

44% of the dependent artifacts (287) still pull an affected version in their latest release.

DepthDependent versions
Direct
12,863
2 hops
10,615
3 hops
13,191
4 hops
16,833
5 hops
23,355
6 hops
10,006

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.