{"answers":{"affected":"5 open source packages ship an affected version, including org.apache.solr:solr-core and solr. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50386 exists.","fix":"Upgrade org.apache.solr:solr-core to a fixed version for your release line: 8.11.3 or 9.4.1.","what":"CVE-2023-50386 is a high-severity vulnerability in Apache Solr, published on 9 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-50386 and fix it if it is affected.\n\nWhat it is: CVE-2023-50386 is a high-severity vulnerability in Apache Solr, published on 9 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50386 exists.\n\nAffected packages and fixed versions:\n- org.apache.solr:solr-core (Maven): affected from 6.0.0; fixed in 8.11.3\n- org.apache.solr:solr-core (Maven): affected from 6.0.0; fixed in 8.11.3\n- org.apache.solr:solr-core (Maven): affected from 9.0.0; fixed in 9.4.1\n- org.apache.solr:solr-core (Maven): affected from 9.0.0; fixed in 9.4.1\n- solr (Bitnami): affected from 6.0.0; fixed in 8.11.3, 9.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-50386/ (Markdown: https://insights.sbomify.com/CVE-2023-50386/index.md)","id":"CVE-2023-50386","markdown":"https://insights.sbomify.com/CVE-2023-50386/index.md","name":"CVE-2023-50386","record":{"aliases":["BIT-solr-2023-50386","DEBIAN-CVE-2023-50386","GHSA-37vr-vmg4-jwpw"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Solr search engine","requires_auth":"low_privilege","summary":"Attackers can upload malicious Java files via ConfigSets API, leading to code execution when backups are restored to classpath directories.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"solr","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2024-02-24","github_poc":1,"max_poc_stars":63,"metasploit":1,"nuclei":0,"refs":[{"date":"2024-02-29T08:57:47Z","kind":"github_poc","ref":"https://github.com/vvmdx/Apache-Solr-RCE_CVE-2023-50386_POC","stars":63,"title":"Apache Solr Backup/Restore APIs RCE Poc (CVE-2023-50386)"},{"date":"2024-02-24","kind":"metasploit","ref":"exploit/linux/http/apache_solr_backup_restore","stars":null,"title":"Apache Solr Backup/Restore APIs RCE"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious ConfigSets","id":"CVE-2023-50386","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"file_upload","year":"2023"},"n_packages":5,"n_references":2,"next":{"headline":"Denial of service in n/a","id":"CVE-2023-50387"},"packages":[{"ecosystem":"Bitnami","fixed":["8.11.3","9.4.1"],"introduced":["6.0.0","9.0.0"],"last_affected":[],"package":"solr","purl":"pkg:bitnami/solr","source":"BIT-solr-2023-50386"},{"ecosystem":"Maven","fixed":["8.11.3"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-37vr-vmg4-jwpw"},{"ecosystem":"Maven","fixed":["8.11.3"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-37vr-vmg4-jwpw"},{"ecosystem":"Maven","fixed":["9.4.1"],"introduced":["9.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-37vr-vmg4-jwpw"},{"ecosystem":"Maven","fixed":["9.4.1"],"introduced":["9.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-37vr-vmg4-jwpw"}],"prev":{"headline":"Command injection in WBR-6013","id":"CVE-2023-50383"},"products":["Apache Solr"],"published":"2024-02-09","related":[{"cvss_score":7.5,"headline":"Apache Solr VelocityResponseWriter Plug-In Remote Code Execution","id":"CVE-2019-17558","kev_date_added":"2021-11-03","published":"2019-12-30"},{"cvss_score":7.2,"headline":"Apache Solr DataImportHandler Code Injection","id":"CVE-2019-0193","kev_date_added":"2021-12-10","published":"2019-08-01"},{"cvss_score":9.8,"headline":"Apache Solr: Authentication bypass possible using a fake URL Path ending","id":"CVE-2024-45216","kev_date_added":null,"published":"2024-10-16"},{"cvss_score":9.8,"headline":"Apache Solr information disclosure vulnerability through DataImportHandler","id":"CVE-2021-44548","kev_date_added":null,"published":"2021-12-23"},{"cvss_score":9.8,"headline":"SSRF vulnerability with the Replication handler","id":"CVE-2021-27905","kev_date_added":null,"published":"2021-04-13"},{"cvss_score":9.8,"headline":"Incorrect Authorization in Apache Solr","id":"CVE-2020-13957","kev_date_added":null,"published":"2020-10-13"},{"cvss_score":9.8,"headline":"Unrestricted upload of file with dangerous type in Apache Solr","id":"CVE-2019-12409","kev_date_added":null,"published":"2019-11-18"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-24","vendors":["Apache Software Foundation"]},"summary":"Attackers can upload malicious Java files via ConfigSets API, leading to code execution when backups are restored to classpath directories.","url":"https://insights.sbomify.com/CVE-2023-50386/"}