Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Arbitrary Code Injection vulnerabilities in an interactive lesson.
Start learningUpgrade smolagents
to version 1.17.0 or higher.
smolagents is a 🤗 smolagents: a barebones library for agents. Agents write python code to call tools or orchestrate other agents.
Affected versions of this package are vulnerable to Arbitrary Code Injection via the evaluate_name
function in the local_python_executor.py
file. An attacker can execute arbitrary code on the host system by leveraging whitelisted modules and functions to bypass the restricted execution environment.