CVE-2023-50386: Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious ConfigSets

CVE-2023-50386 affects 67 listed versions of Apache Solr in the Dawnsentry catalogue.

8.8CVSS high
Attack tool publicexploitation
84%EPSS (next 30 days)
9 February 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apache Solr

67 of 128 listed versions are affected. Fixed in 9.4.1, 8.11.3. The newest release, 10.1.0, is not affected.

9.4.0 9.3.0 9.2.1 9.2.0 9.1.1 9.1.0 9.0.0 8.11.2 8.11.1 8.11.0 8.10.1 8.10.0 8.9.0 8.9 8.8.2 8.8.1 8.8.0 8.7.0 8.6.3 8.6.2 8.6.1 8.6.0 8.5.2 8.5.1 8.5.0 8.4.1 8.4.0 8.3.1 8.3.0 8.2.0 8.1.2 8.1.1 8.1.0 8.0.0 7.7.3 7.7.2 7.7.1 7.7.0 7.7 7.6.0 7.5.0 7.4.0 7.3.1 7.3.0 7.2.1 7.2.0 7.1.0 7.0.1 7.0.0 6.6.6 6.6.5 6.6.4 6.6.3 6.6.2 6.6.1 6.6.0 6.5.1 6.5.0 6.4.2 6.4.1 and 7 more

What it is

Improper Control of Dynamically-Managed Code Resources, Unrestricted Upload of File with Dangerous Type, Inclusion of Functionality from Untrusted Control Sphere vulnerability in Apache Solr.This issue affects Apache Solr: from 6.0.0 through 8.11.2, from 9.0.0 before 9.4.1. In the affected versions, Solr ConfigSets accepted Java jar and class files to be uploaded through the ConfigSets API. 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. When Solr is run in a secure way (Authorization enabled), as is strongly suggested, this vulnerability is limited to extending the Backup permissions with the ability to add libraries. Users are recommended to upgrade to version 8.11.3 or 9.4.1, which fix the issue. In these versions, the following protections have been added: * Users are no longer able to upload files to a configSet that could be executed via a Java ClassLoader. * The Backup API restricts saving backups to directories that are used in the ClassLoader.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Apache Software Foundation on 9 February 2024. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2023-50386 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.