PyPI: refuel-autolabel
CVE-2024-27320
Safety vulnerability ID: SFTY-20240912-06843
Safety legacy ID: pyup.io-73325
The Refuel Autolabel library affected versions contain an arbitrary code execution vulnerability in its classification task handler. When processing CSV files for these tasks, the library uses an unsafe eval() function to interpret values enclosed in square brackets. Attackers can exploit this vulnerability by crafting malicious CSV files containing Python code within these brackets. Upon processing such a file, the library will execute the embedded code, potentially compromising the system. Users should exercise extreme caution when handling external CSV files and avoid using this feature until the developers patch the vulnerability.
Overview
Refuel Autolab Eval Injection vulnerability
Advisory
The Refuel Autolabel library affected versions contain an arbitrary code execution vulnerability in its classification task handler. When processing CSV files for these tasks, the library uses an unsafe eval() function to interpret values enclosed in square brackets. Attackers can exploit this vulnerability by crafting malicious CSV files containing Python code within these brackets. Upon processing such a file, the library will execute the embedded code, potentially compromising the system. Users should exercise extreme caution when handling external CSV files and avoid using this feature until the developers patch the vulnerability.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240912-06843/CVE-2024-27320
- https://nvd.nist.gov/vuln/detail/CVE-2024-27320
- https://hiddenlayer.com/sai-security-advisory/2024-09-autolabel
- https://github.com/refuel-ai/autolabel/blob/v0.0.16/src/autolabel/dataset/validation.py#L57-L79
- https://github.com/advisories/GHSA-g2m8-f3x2-qprw
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
