CVE-2023-50386Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | lucene-solr | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | lucene-solr | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | lucene-solr | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | lucene-solr | Fix pending | ||
| Debian 14 | lucene-solr | Fixed | 3.6.2+dfsg-23 | DEBIAN-CVE-2023-50386 |
| Debian 13 | lucene-solr | Fixed | 3.6.2+dfsg-23 | DEBIAN-CVE-2023-50386 |
| Debian 12 | lucene-solr | Fixed | 3.6.2+dfsg-23 | DEBIAN-CVE-2023-50386 |
| Maven library | org.apache.solr:solr-core | Fixed | 9.4.1 | GHSA-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.
- Apache Software Foundation Apache Solr: affected: 6.0.0 to 8.11.2, 9.0.0 to before 9.4.1; fixed in
9.4.1
Vendor advisories:
- https://solr.apache.org/security.html#cve-2023-50386-apache-solr-backuprestore-apis-allow… (vendor-advisory)
References
- https://solr.apache.org/security.html#cve-2023-50386-apache-solr-backuprestore-apis-allow-for-deployment-of-executables-in-malicious-configsets
- http://www.openwall.com/lists/oss-security/2024/02/09/1
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.