#VU86635 Arbitrary file upload in Apache Solr - CVE-2023-50386

 

#VU86635 Arbitrary file upload in Apache Solr - CVE-2023-50386

Published: February 20, 2024 / Updated: May 23, 2024


Vulnerability identifier: #VU86635
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Green
CVE-ID: CVE-2023-50386
CWE-ID: CWE-434
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vulnerable software:
Apache Solr
Software vendor:
Apache Foundation

Description

The vulnerability allows a remote user to compromise vulnerable system.

The vulnerability exists due to Solr ConfigSets accepts Java ".jar" and ".class" files to be uploaded through the ConfigSets API. Such files can be later included into a backup and executed during the restore procedure. When backing up Solr Collections, these configSet files would be saved to disk when using the LocalFileSystemRepository (the default for backups). If the backup was saved to a directory that Solr uses in its ClassPath/ClassLoaders, then the jar and class files would be available to use with any ConfigSet, trusted or untrusted. As a result, a remote user with backup permissions can include malicious files into the backup and execute arbitrary code on the system, when files are restored from the backup.


Remediation

Install updates from vendor's website.

External links