CVE-2024-52012: Apache Solr Relative Path Traversal vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.77216%
CWE
Published
1/27/2025
Updated
1/27/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.solr:solr-core | maven | >= 6.6, < 9.8.0 | 9.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path validation in the config.php
upload API. The commit diff shows the vulnerable version resolved user-controlled filenames
directly via Path.resolve()
and wrote files without verifying containment within the configset
directory. The patch added FileUtils.isPathAChildOfParent()
validation to prevent path traversal. The affected function
handles file uploads and contained the insecure path resolution logic prior to patching, making it the primary vulnerable entry point.