PyPI: mindsdb
CVE-2024-45853
Safety vulnerability ID: SFTY-20240912-83055
Safety legacy ID: pyup.io-73319
MindsDB affected versions contain a critical security vulnerability in the 'inhouse' model functionality. Malicious actors can exploit this flaw to execute arbitrary code on the server during prediction tasks. The vulnerability stems from unsafe deserialization of untrusted data in the BYOM (Bring Your Own Model) feature. Attackers who successfully upload a compromised 'inhouse' model can trigger the exploit when the system uses the model for predictions. This security issue poses a significant risk to server integrity and data confidentiality. Users are advised to update to a patched version or implement alternative serialization methods immediately.
Overview
MindsDB Deserialization of Untrusted Data vulnerability
Advisory
MindsDB affected versions contain a critical security vulnerability in the 'inhouse' model functionality. Malicious actors can exploit this flaw to execute arbitrary code on the server during prediction tasks. The vulnerability stems from unsafe deserialization of untrusted data in the BYOM (Bring Your Own Model) feature. Attackers who successfully upload a compromised 'inhouse' model can trigger the exploit when the system uses the model for predictions. This security issue poses a significant risk to server integrity and data confidentiality. Users are advised to update to a patched version or implement alternative serialization methods immediately.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240912-83055/CVE-2024-45853
- https://nvd.nist.gov/vuln/detail/CVE-2024-45853
- https://hiddenlayer.com/sai-security-advisory/2024-09-mindsdb
- https://github.com/mindsdb/mindsdb/blob/v24.9.2.1/mindsdb/integrations/handlers/byom_handler/byom_handler.py#L424-L431
- https://github.com/pypa/advisory-database/tree/main/vulns/mindsdb/PYSEC-2024-83.yaml
- https://github.com/advisories/GHSA-q9r8-89xr-4xv4
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
