Browse / Unsafe Model Loading and Supply Chain / CVE-2024-45854
MindsDB Deserialization of Untrusted Data vulnerability
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Unsafe deserialisation
- Affected
- mindsdb (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
A crafted inhouse model file is deserialised when a describe query touches it, so the embedded payload runs on the server. (Our summary, written by a model. The source text is below.)
Details
Deserialization of untrusted data can occur in versions 23.10.3.0 and newer of the MindsDB platform, enabling a maliciously uploaded ‘inhouse’ model to run arbitrary code on the server when a ‘describe’ query is run on it.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45854
- https://github.com/mindsdb/mindsdb
- https://github.com/mindsdb/mindsdb/blob/v24.9.2.1/mindsdb/integrations/handlers/byom_handler/byom_handler.py#L444-L449
- https://github.com/pypa/advisory-database/tree/main/vulns/mindsdb/PYSEC-2024-84.yaml
- https://hiddenlayer.com/sai-security-advisory/2024-09-mindsdb
Source: GitHub Advisory Database, used under CC BY 4.0.