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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 23.20% (percentile 98, 2026-11-26)
- **CWE:** CWE-434, CWE-913
- **Aliases:** BIT-solr-2023-50386, GHSA-37vr-vmg4-jwpw
- **Published:** 2024-02-09T17:28:51.290Z
- **Modified:** 2026-09-10T03:50:00.337Z

## Who should check

- Projects that depend on Maven package org.apache.solr:solr-core (\>= 6.0.0, \< 8.11.3)
- Anyone running Apache Software Foundation Apache Solr \>= 6.0.0, \<= 8.11.2; \>= 9.0.0, \< 9.4.1

## Description

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.

## Affected and fixed versions

- Maven `org.apache.solr:solr-core`: affected \>= 6.0.0, \< 8.11.3; fixed 8.11.3, 9.4.1 (osv)
- Apache Software Foundation Apache Solr: \>= 6.0.0, \<= 8.11.2; \>= 9.0.0, \< 9.4.1 (cvelist)

## Mitigation

- Upgrade org.apache.solr:solr-core to one of 8.11.3, 9.4.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-50386. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-50386.md
Affected: org.apache.solr:solr-core >= 6.0.0, < 8.11.3
Fixed in: 8.11.3, 9.4.1

Steps:
1. Search this machine and project for org.apache.solr:solr-core (Maven), Apache Software Foundation Apache Solr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-50386 being exploited?

There is no confirmed exploitation: CVE-2023-50386 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 23.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-50386?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-50386?

org.apache.solr:solr-core \>= 6.0.0, \< 8.11.3.

### Is there a fix for CVE-2023-50386?

Yes. Fixed in 8.11.3, 9.4.1. Upgrade org.apache.solr:solr-core to one of 8.11.3, 9.4.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-50386?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://solr.apache.org/security.html#cve-2023-50386-apache-solr-backuprestore-apis-allow-for-deployment-of-executables-in-malicious-configsets>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-50386>
- patch: <https://github.com/apache/lucene-solr/commit/6c8f24eb9e3fe1cb19058173f2e221de3febfeda>
- patch: <https://github.com/apache/lucene-solr/commit/7e9a2e67f812032a049836c3aa0b18bf5cd717f9>
- patch: <https://github.com/apache/solr/commit/644dd3a6d6780d71030f7070754d2f3adce22859>
- patch: <https://github.com/apache/solr/commit/c79011e81dada2f9bc4b4df32ffb32152ef81152>
- other: <http://www.openwall.com/lists/oss-security/2024/02/09/1>
- other: <https://issues.apache.org/jira/browse/SOLR-16949>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-50386>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-37vr-vmg4-jwpw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-50386> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-50386>
