CVE-2023-50731
CVSS 3.1 Score 9.1 of 10 (high)
Details
Summary
CVE-2023-50731 is a vulnerability affecting MindsDB, an SQL Server for artificial intelligence, prior to version 23.11.4.1. The issue lies in the `put` method of `mindsdb/mindsdb/api/http/namespaces/file.py`, which fails to validate user-controlled input used in creating a temporary file name. Malicious actors can exploit this path injection vulnerability to write arbitrary files outside of the intended directory. Although Mindsdb later checks for specific file types on line 149 in the `save_file` method, this check occurs after the file has been written, resulting in the persistence of the potentially dangerous files. An attacker can also delete `zip` or `tar.gz` files on the server due to another path injection vulnerability on line 138.
Prevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.
Affected Products
- MindsDB
Affected Vendors
- MindsDB
Advisories, Assessments, and Mitigations
Prioritize, Pinpoint, and Act to Prevent Vulnerability Exploits with Recorded Future
- Gain complete coverage of your cyber, third party, and physical attack surface
- Proactively mitigate threats before they turn into costly attacks
- Make fast, effective, data-driven decisions