Intel

AIKIDO-2025-10534

smolagents is vulnerable to Remote Code Execution (RCE)

CVE-2025-9959Published Aug 8, 2025
August 8, 2025

75

CVE Score

High

Remote Code Execution (RCE)

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.

How do I fix this?

Upgrade the smolagents library to the patch version.

Who does this affect?

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

Package

Versions

0.0.1 - 1.20.0

Fixed in 1.21.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea