{"id":"CVE-2023-50386","published":"2024-02-09T17:28:51Z","modified":"2025-04-24T15:47:50Z","title":"Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious ConfigSets","vendor":"Apache Software Foundation","product":"Apache Solr","tier":"core","eol":null,"affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Solr","versions":[">= 6.0.0, <= 8.11.2",">= 9.0.0, < 9.4.1"]}],"description":{"text":"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.\n\nIn the affected versions, Solr ConfigSets accepted Java jar and class files to be uploaded through the ConfigSets API.\nWhen backing up Solr Collections, these configSet files would be saved to disk when using the LocalFileSystemRepository (the default for backups).\nIf 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.\n\nWhen 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.\nUsers are recommended to upgrade to version 8.11.3 or 9.4.1, which fix the issue.\nIn these versions, the following protections have been added:\n\n  *  Users are no longer able to upload files to a configSet that could be executed via a Java ClassLoader.\n  *  The Backup API restricts saving backups to directories that are used in the ClassLoader.","provenance":"source","from":"CVE.org"},"summary":{"text":"Apache Solr (affected versions 6.0.0 through 8.11.2 and 9.0.0 before 9.4.1) contains a flaw in its ConfigSets and Backup APIs, where uploaded Java jar and class files can be written by backups to a directory that Solr loads into its ClassPath. An attacker with network access and low-privileged credentials, with no user interaction, can deploy executable code through a malicious ConfigSet, and this is more limited when Solr authorization is enabled, where the impact is restricted to gaining the ability to add libraries via backup permissions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T04:54:47Z"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.83719,"percentile":0.99688,"date":"2026-10-31","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-09-18","exploitedFirstSeen":"2024-09-18","ransomware":false,"evidence":[{"url":"https://media.defense.gov/2024/Sep/18/2003547016/-1/-1/0/CSA-PRC-LINKED-ACTORS-BOTNET.PDF","date":"2024-09-18"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":null,"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"}],"references":[{"url":"https://solr.apache.org/security.html#cve-2023-50386-apache-solr-backuprestore-apis-allow-for-deployment-of-executables-in-malicious-configsets","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/02/09/1","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=6.0.0, <8.11.3",">=9.0.0, <9.4.1"],"patched":["8.11.3","9.4.1"],"from":["GHSA-37vr-vmg4-jwpw"],"provenance":"source"}],"advisories":[{"id":"GHSA-37vr-vmg4-jwpw","url":"https://github.com/advisories/GHSA-37vr-vmg4-jwpw","severity":"HIGH","ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=6.0.0, <8.11.3"],"patched":["8.11.3"],"provenance":"source","from":"GHSA"},{"id":"GHSA-37vr-vmg4-jwpw","url":"https://github.com/advisories/GHSA-37vr-vmg4-jwpw","severity":"HIGH","ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=9.0.0, <9.4.1"],"patched":["9.4.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-0481","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0481","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-02-29","earliestUrl":"https://github.com/vvmdx/Apache-Solr-RCE_CVE-2023-50386_POC","repos":[{"name":"vvmdx/Apache-Solr-RCE_CVE-2023-50386_POC","url":"https://github.com/vvmdx/Apache-Solr-RCE_CVE-2023-50386_POC","stars":63,"created":"2024-02-29"}]},"metasploit":[{"name":"Apache Solr Backup/Restore APIs RCE","module":"exploit/linux/http/apache_solr_backup_restore","type":"exploit","disclosureDate":"2024-02-24","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_solr_backup_restore.rb"}],"first":{"date":"2024-02-24","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_solr_backup_restore.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-02-09","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2023-50386","provenance":"source"},{"date":"2024-02-24","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2024-02-29","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_solr_backup_restore.rb","provenance":"source"},{"date":"2024-09-18","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://media.defense.gov/2024/Sep/18/2003547016/-1/-1/0/CSA-PRC-LINKED-ACTORS-BOTNET.PDF","provenance":"source"}],"speed":{"daysToPublicExploit":15,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":66.1,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 774 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.94,"detail":"percentile 0.9969"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.16,"detail":"base score 8.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2023-50290","published":"2024-01-15","fixed":"9.3.0","kev":false},{"cve":"CVE-2023-50291","published":"2024-02-09","fixed":"9.3.0","kev":false},{"cve":"CVE-2023-50292","published":"2024-02-09","fixed":"9.3.0","kev":false,"link":{"from":"CVE-2023-50292","to":"CVE-2023-50386","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"9.3.0","toFixed":"9.4.1","daysApart":0},{"kind":"similar","provenance":"machine","score":0.26,"basis":"same product + description similarity"}]}},{"cve":"CVE-2023-50386","published":"2024-02-09","fixed":"9.4.1","kev":false},{"cve":"CVE-2024-52012","published":"2025-01-27","fixed":"9.8.0","kev":false,"link":{"from":"CVE-2023-50386","to":"CVE-2024-52012","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"9.4.1","toFixed":"9.8.0","daysApart":353}]}},{"cve":"CVE-2025-24814","published":"2025-01-27","fixed":"9.8.0","kev":false,"link":{"from":"CVE-2023-50386","to":"CVE-2025-24814","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"9.4.1","toFixed":"9.8.0","daysApart":353}]}},{"cve":"CVE-2026-22022","published":"2026-01-21","fixed":"9.10.1","kev":false}],"package":"Maven:org.apache.solr:solr-core"}}