nixpkgs
nixpkgs copied to clipboard
Sandbox escape in smolagents Local Python execution environment via dunder attributes
- CVE-2025-9959
- Nixpkgs security tracker issue
- affected package maintainers: cc
@fabaff
Description
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.
CVSS CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): REQUIRED
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): HIGH
- Availability impact (A): LOW
Affected packages
python312Packages.smolagentspython313Packages.smolagents
Fixed in 1.21.0 https://github.com/huggingface/smolagents/commit/6a42a87755d73c68f629eba946002de7ddca5078
Both stable and unstable are > 1.21.0.