Skip to main content
← All vulnerabilities
CVE-2025-9959

Sandbox escape in smolagents Local Python execution environment via dunder attributes

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.21.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Incomplete validation of dunder attributes allows an attacker to escape from the Local Python execution environment sandbox, enforced by smolagents. The attack requires a Prompt Injection in order to trick the agent to create malicious code.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • smolagents

    fixed in 1.21.0

References 2

research.jfrog.com

GitHub · huggingface/smolagents