Skip to main content
Public proof of conceptFix available

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?

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
  1. 2024-02-0918:15CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
Apache solr
BranchAffectedFixed in
9.x≥ 9.0.0, < 9.4.19.4.1
8.11≥ 6.0.0, < 8.11.38.11.3
6.0= 6.0.0no fix published

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 affected
    Affected
    • ≥ 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

Full record on NVD

Fix

  1. 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
Metasploit modules
1 moduleexploit/linux/http/apache_solr_backup_restorerank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2023-50386 actively exploited?

A proof-of-concept exploit exists for CVE-2023-50386, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-50386?

CVE-2023-50386 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record