Intel

AIKIDO-2025-10534

smolagents is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2025-9959 Published Aug 8, 2025

75

High Risk

This Affects:

PYTHONsmolagents
0.0.1 - 1.20.0
Fixed in 1.21.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

smolagents is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 1.20.0.

How to fix this

Upgrade the smolagents library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform