CVE-2023-50386
Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious ConfigSets
Also known as BIT-solr-2023-50386, GHSA-37vr-vmg4-jwpw
Mitigation
- Upgrade org.apache.solr:solr-core to one of 8.11.3, 9.4.1 (or later in the same release line).
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
Vulnerability facts
- Affected
- org.apache.solr:solr-core >= 6.0.0, < 8.11.3
- Fixed in
- 8.11.3, 9.4.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 23.20% chance of exploitation in 30 days (percentile 98, 2026-11-26)
- CWE
- CWE-434, CWE-913
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.solr:solr-core | >= 6.0.0, < 8.11.3 | 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
- https://github.com/apache/lucene-solr/commit/6c8f24eb9e3fe1cb19058173f2e221de3febfeda
- https://github.com/apache/lucene-solr/commit/7e9a2e67f812032a049836c3aa0b18bf5cd717f9
- https://github.com/apache/solr/commit/644dd3a6d6780d71030f7070754d2f3adce22859
- https://github.com/apache/solr/commit/c79011e81dada2f9bc4b4df32ffb32152ef81152
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.