PT-2023-31354 · Mindsdb · Mindsdb

Sylwia-Budzynska

·

Published

2023-12-11

·

Updated

2023-12-14

·

CVE-2023-49796

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions MindsDB versions prior to 23.11.4.1
Description MindsDB connects artificial intelligence models to real-time data. The issue is related to a limited file write vulnerability in the file.py module. This vulnerability may lead to arbitrary file write, allowing files to be written anywhere on the server that the filesystem permissions of the running server have access to. The put method in mindsdb/mindsdb/api/http/namespaces/file.py does not validate the user-controlled name value, which is used in a temporary file name and can lead to path injection.
Recommendations For versions prior to 23.11.4.1, use MindsDB's staging branch or update to version 23.11.4.1, which contains a fix for the issue. As a temporary workaround, consider restricting access to the file.py module until the issue is resolved. Avoid using the name variable in the affected API endpoint until the issue is resolved.

Exploit

Fix

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2023-49796
GHSA-CRHP-7C74-CG4C
PYSEC-2023-278

Affected Products

Mindsdb