Name of the Vulnerable Software and Affected Versions:
huggingface/smolagents versions prior to 1.17.0
Description:
A sandbox escape allows attackers to bypass the restricted execution environment and achieve remote code execution (RCE). The issue resides in the `local python executor.py` module, which inadequately restricts Python code execution despite employing static and dynamic checks. Attackers can exploit whitelisted modules and functions to execute arbitrary code, potentially compromising the host system. This flaw undermines the security boundary intended to isolate untrusted code, posing risks such as unauthorized code execution and data leakage.
Recommendations:
Update to version 1.17.0 or later.