Vulnerability 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 Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/huggingface/smolagents/pull/1551
- https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escap
FAQ
What is CVE-2025-9959?
CVE-2025-9959 is a vulnerability with a CVSS score of 7.6 (HIGH). 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 ...
How severe is CVE-2025-9959?
CVE-2025-9959 has been rated HIGH with a CVSS base score of 7.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-9959?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.