#VU86635 Arbitrary file upload in Apache Solr - CVE-2023-50386
Published: February 20, 2024 / Updated: May 23, 2024
Apache Solr
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.