smolagents is vulnerable to Remote Code Execution (RCE)
75
High Risk
Affected versions are vulnerable to arbitrary code execution through improper restrictions on the use of dunder (double underscore) methods in the local_python_executor. Malicious users could exploit access to unsafe dunder methods (e.g., __subclasses__, __getattribute__) to bypass sandbox restrictions, perform introspection, or execute unauthorized code. The patch mitigates this by explicitly blocking the use of non-whitelisted dunder methods.
You are affected if you are using a version that falls within the vulnerable range.
smolagents is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 1.20.0.
Upgrade the smolagents library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant