CVE-2023-50386Solr Unrestricted File Upload
Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious ConfigSets
Published Feb 9, 2024 · Updated Oct 28, 2026 · Also known as BIT-solr-2023-50386, CGA-8f9p-76p7-74qq, CGA-qx96-phjg-jchc, CGA-vrjq-f2h2-xv34, CGA-xq5f-2fvc-x6cw, DEBIAN-CVE-2023-50386, GHSA-37vr-vmg4-jwpw, UBUNTU-CVE-2023-50386
Key Facts
Patch immediately- CVE-2023-50386 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Solr (Apache), lucene-solr (debian), org.apache.solr:solr-core (maven).
- It is exploited in the wild, listed in Industry KEV feed since Sep 18, 2024. Public exploit code is available.
- EPSS estimates a 23% probability of exploitation in the next 30 days.
- Fixed versions are available, including Solr 8.11.3, Solr 9.4.1, Solr 9.5.0-r0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
23%
Higher than 98.2% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
61/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Sep 18, 2024
222 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
3
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2023-50386
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-50386
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2023-50386
- advisoryhttps://ubuntu.com/security/CVE-2023-50386
- advisoryGHSA advisory
- advisoryhttps://www.openwall.com/lists/oss-security/2024/02/09/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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Sep 18, 2024 | n/a | Not reported |
Affected Products
17 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| SolrApache | >= 6.0.0 | 8.11.3 |
| lucene-solrdebian | See advisory | 3.6.2+dfsg-23 |
| org.apache.solr:solr-coremaven | >= 6.0.0 | 8.11.3 |
Patched Releases
Solr
8.11.3, 9.4.1, 9.5.0-r0
lucene-solr
3.6.2+dfsg-23
org.apache.solr:solr-core
8.11.3, 9.4.1
Timeline
Publicly disclosed
Feb 9, 2024
Added to Industry KEV feed
Sep 18, 2024
Last updated
Oct 28, 2026
Weakness Type
- CWE-434 Unrestricted Upload of File with Dangerous Type
- CWE-913 Improper Control of Dynamically-Managed Code Resources
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2023-50386
- advisorysecurity-tracker.debian.org · CVE-2023-50386
- advisoryubuntu.com · CVE-2023-50386
- advisoryGHSA advisory
FAQ
Common Questions.
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.
Affected: Solr (Apache) versions >= 6.0.0; lucene-solr (debian); org.apache.solr:solr-core (maven) versions >= 6.0.0. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Sep 18, 2024.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Solr 8.11.3, Solr 9.4.1, Solr 9.5.0-r0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2023-50386 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo