Nixpkgs Security Tracker

Login with GitHub

Details of issue NIXPKGS-2025-0005

NIXPKGS-2025-0005
published on 1 Nov 2025
updated 2 months, 3 weeks ago by @LeSuisse Activity log
  • Created automatic suggestion
  • @LeSuisse accepted as draft
  • @LeSuisse published on GitHub
Sandbox escape in smolagents Local Python execution environment via dunder attributes

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.

Affected products

smolagents
  • <1.21.0

Matching in nixpkgs

pkgs.python312Packages.smolagents

Barebones library for agents

  • nixos-unstable -

pkgs.python313Packages.smolagents

Barebones library for agents

  • nixos-unstable -

Package maintainers: 1