{"schemaVersion":3,"id":"CVE-2023-50386","aliases":["UBUNTU-CVE-2023-50386","DEBIAN-CVE-2023-50386","CGA-8f9p-76p7-74qq","CGA-qx96-phjg-jchc","CGA-vrjq-f2h2-xv34","CGA-xq5f-2fvc-x6cw","GHSA-37vr-vmg4-jwpw","BIT-solr-2023-50386"],"status":"published","duplicateOf":null,"title":null,"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.\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.","dates":{"published":"2024-02-09T17:28:51.290Z","modified":"2025-04-24T15:47:50.228Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.83719,"percentile":0.99688,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.83719},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.83719,"percentile":0.99688}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.83719,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.83719,"percentile":0.99688}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"MSF_EXPLOIT_LINUX_HTTP_APACHE_SOLR_BACKUP_RESTORE","name":"Apache Solr Backup/Restore APIs RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/linux/http/apache_solr_backup_restore.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/linux/http/apache_solr_backup_restore","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk","config-changes"],"reliability":["repeatable-session"]}}],"exploitCount":1,"weaknesses":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type","description":"The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/434.html"},{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources","description":"The product does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/913.html"}],"affected":[{"vendor":"apache software foundation","product":"apache solr","name":"Apache Solr","label":"apache solr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.0.0, ≤ 8.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0.0, < 9.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, ≤ 8.11.2 | ≥ 9.0.0, < 9.4.1","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_solr"},{"vendor":"apache","product":"solr","name":"Solr","label":"solr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.0.0, < 8.11.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0.0, < 9.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, < 8.11.3 | ≥ 9.0.0, < 9.4.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"solr","label":"Apache Solr","category":"server-app"}},"hubHref":"/vendor/apache/solr"},{"vendor":"chainguard","product":"solr","name":"solr","label":"solr","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/solr","purlType":"apk","versions":[{"text":"< 9.5.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.5.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"solr-oci-compat","name":"solr-oci-compat","label":"solr-oci-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/solr-oci-compat","purlType":"apk","versions":[{"text":"< 9.5.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.5.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"solr","name":"solr","label":"solr","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/solr","purlType":"apk","versions":[{"text":"< 9.5.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.5.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"solr-oci-compat","name":"solr-oci-compat","label":"solr-oci-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/solr-oci-compat","purlType":"apk","versions":[{"text":"< 9.5.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.5.0-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"lucene-solr","name":"lucene-solr","label":"lucene-solr","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/lucene-solr","purlType":"deb","versions":[{"text":"< 3.6.2+dfsg-23","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.2+dfsg-23","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"lucene-solr","name":"lucene-solr","label":"lucene-solr","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/lucene-solr","purlType":"deb","versions":[{"text":"< 3.6.2+dfsg-24","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.2+dfsg-24","eol":null,"hubHref":null},{"vendor":"org.apache.solr","product":"solr-core","name":"org.apache.solr:solr-core","label":"solr-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.solr/solr-core","purlType":"maven","versions":[{"text":"≥ 6.0.0, < 8.11.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0.0, < 9.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, < 8.11.3 | ≥ 9.0.0, < 9.4.1","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://solr.apache.org/security.html#cve-2023-50386-apache-solr-backuprestore-apis-allow-for-deployment-of-executables-in-malicious-configsets","label":"solr.apache.org/security.html","hostname":"solr.apache.org","tags":["Vendor Advisory","REPORT","Advisory","WEB","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/02/09/1","label":"www.openwall.com/lists/oss-security/2024/02/09/1","hostname":"www.openwall.com","tags":["WEB","Mailing List"]},{"url":"https://ubuntu.com/security/CVE-2023-50386","label":"ubuntu.com/security/CVE-2023-50386","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2024/02/09/1","label":"www.openwall.com/lists/oss-security/2024/02/09/1","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-50386","label":"www.cve.org/CVERecord?id=CVE-2023-50386","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-50386","label":"security-tracker.debian.org/tracker/CVE-2023-50386","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50386.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50386.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50386","label":"nvd.nist.gov/vuln/detail/CVE-2023-50386","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/lucene-solr/commit/6c8f24eb9e3fe1cb19058173f2e221de3febfeda","label":"github.com/apache/lucene-solr/commit/6c8f24eb9e3fe1cb19058173f2e221de3febfeda","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/lucene-solr/commit/7e9a2e67f812032a049836c3aa0b18bf5cd717f9","label":"github.com/apache/lucene-solr/commit/7e9a2e67f812032a049836c3aa0b18bf5cd717f9","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/solr/commit/644dd3a6d6780d71030f7070754d2f3adce22859","label":"github.com/apache/solr/commit/644dd3a6d6780d71030f7070754d2f3adce22859","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/solr/commit/c79011e81dada2f9bc4b4df32ffb32152ef81152","label":"github.com/apache/solr/commit/c79011e81dada2f9bc4b4df32ffb32152ef81152","hostname":"github.com","tags":["WEB"]},{"url":"https://issues.apache.org/jira/browse/SOLR-16949","label":"issues.apache.org/jira/browse/SOLR-16949","hostname":"issues.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-6RJ7-2H6H-RVFF","CGA-79G3-2MRF-FPC4"]},"timeline":[{"kind":"published","date":"2024-02-09T17:28:51.290Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-24T15:47:50.228Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":62,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T11:23:51.154Z","stale":false,"partial":false}}