CVE-2023-49796
Python vulnerability analysis and mitigation

Overview

MindsDB, a software that connects artificial intelligence models to real-time data, was found to contain a limited file write vulnerability in file.py in versions prior to 23.11.4.1. The vulnerability was discovered and reported by Sylwia Budzynska from the GitHub Security Lab team (GitHub Advisory).

Technical details

The vulnerability exists in the put method in mindsdb/mindsdb/api/http/namespaces/file.py where user-controlled input in the original_file_name value is not properly validated. This leads to path injection after file contents have been checked by the _handle_source method in file_handler.py. The vulnerability allows for creating and overwriting files, but only if they are real csv, xls, xlsx, json, or parquet files. The issue has been assigned a CVSS v3.1 base score of 5.3 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD).

Impact

The vulnerability allows attackers to create and overwrite files on the system, but is limited to specific file types (csv, xls, xlsx, json, or parquet). This could potentially lead to unauthorized file manipulation within the system's constraints (GitHub Lab).

Mitigation and workarounds

Users should upgrade to MindsDB version 23.11.4.1 or use the staging branch, which contains a fix for the issue. The fix includes improved input validation and filename sanitization through the implementation of a clear_filename function (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
CVE-2026-22219HIGH8.3
  • PythonPython
  • chainlit
NoYesJan 20, 2026
CVE-2026-23842HIGH7.5
  • PythonPython
  • chatterbot
NoYesJan 19, 2026
CVE-2026-23877MEDIUM5.3
  • PythonPython
  • swingmusic
NoYesJan 19, 2026
CVE-2026-23833LOW1.7
  • PythonPython
  • esphome
NoYesJan 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management