CVE-2023-50386
A public proof of concept exists; no exploitation attested.
- Published2024-02-09
- Fixed in9.4.1 · 8.11.3
- WeaknessCWE-434 · CWE-913
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-02-0918:15CVE publishedNVD
Versions per branch
NVD · OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.x | ≥ 9.0.0, < 9.4.1 | 9.4.1 | NVD · OSV |
| 8.11 | ≥ 6.0.0, < 8.11.3 | 8.11.3 | NVD · OSV |
| 6.0 | = 6.0.0 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache Solrother versions: not affectedAffected
- ≥ 6.0.0, ≤ 8.11.2no fix statedsemver
- ≥ 9.0.0, < 9.4.1fixed in 9.4.1semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-02-09
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- lucene-solrDebian:14all versions · fixed in 3.6.2+dfsg-23
- lucene-solrDebian:13all versions · fixed in 3.6.2+dfsg-23
- lucene-solrDebian:12all versions · fixed in 3.6.2+dfsg-23
Vendor advisories
- CVE-2023-50386 Red Hat Product Security
solr: backup/restore APIs allow for deployment of executables in malicious ConfigSets
Fix
- Update Apache solr to 9.4.1 · 8.11.3
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-04-30
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01vvmdx/Apache-Solr-RCE_CVE-2023-50386_POC
- Metasploit modules
- 1 moduleexploit/linux/http/apache_solr_backup_restorerank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-04-30
- CISA-ADPCVSS 3.18.82024-04-26
- NVDCVSS 3.18.8read 2026-10-23
- CNAweakness (CWE)CWE-434, CWE-913known since 2026-10-23
- FIRST EPSSEPSS score83.7 %read 2026-11-19
- PoC-in-GitHubproof of concept1known since 2026-11-01
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2024-02-09
Identifiers
- BIT-solr-2023-50386same flawBitnami · Apache-2.0
- EUVD-2024-0481same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-37vr-vmg4-jwpwsame flawGitHub Advisory Database · CC-BY-4.0
- exploit/linux/http/apache_solr_backup_restoreexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-02-09
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-37vr-vmg4-jwpw
Frequently asked questions
What is CVE-2023-50386?
Is CVE-2023-50386 actively exploited?
What is the CVSS score for CVE-2023-50386?
Running solr? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-37vr-vmg4-jwpw
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0