CVEfocus › CVE database › CVE-2023-50386

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

CVSS 8.8 HighEPSS 23.2% (higher than 98% of CVEs)Published 2024-02-09Updated 2025-04-24Assigner: apache

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.

CWE-434CWE-913

What to do

Likely to be exploited: EPSS gives a 23% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04lucene-solrNot affected
vulnerable_code_not_present
Ubuntu 22.04lucene-solrNot affected
vulnerable_code_not_present
Ubuntu 20.04lucene-solrNot affected
vulnerable_code_not_present
Ubuntu 16.04lucene-solrFix pending
Debian 14lucene-solrFixed3.6.2+dfsg-23DEBIAN-CVE-2023-50386
Debian 13lucene-solrFixed3.6.2+dfsg-23DEBIAN-CVE-2023-50386
Debian 12lucene-solrFixed3.6.2+dfsg-23DEBIAN-CVE-2023-50386
Maven libraryorg.apache.solr:solr-coreFixed9.4.1GHSA-37vr-vmg4-jwpw

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.