Advisory

GHSA-crhp-7c74-cg4c

Also known as: CVE-2023-49796

Summary

Improper Input Validation in mindsdb

Details

Impact

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, which is afterwards opened for writing on lines 122-125, which leads to path injection. This issue may lead to arbitrary file write. This vulnerability allows for writing files anywhere on the server that the filesystem permissions that the running server has access to.

Patches

Use mindsdb staging branch or v23.11.4.1

References

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-12 00:49 UTC
Modified
2024-11-22 18:40 UTC

Affected packages and fixes

mindsdb

PyPI · All systems

Affected

  • introduced 0, fixed 23.11.4.1 (ecosystem)

Fixed versions

23.11.4.1

Fix

  • Fixed version 23.11.4.1
    pip install --upgrade mindsdb==23.11.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences