CVE-2025-5120 Sandbox Escape Vulnerability in huggingface/smolagents

CVE Details

Basic Information

Title CVE-2025-5120 Sandbox Escape Vulnerability in huggingface/smolagents
Type cve
Published 2025-07-27T07:57:07
Last Seen 2025-07-27T08:07:48
Modified 2025-07-27T07:57:07

CVSS Information

Base Score 7.6 (HIGH)
Attack Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
Confidentiality Impact LOW
Integrity Impact HIGH
Availability Impact LOW

AI Analysis

AI Description A sandbox escape vulnerability in huggingface/smolagents v1.14.0 allows attackers to bypass security restrictions and execute remote code, compromising system integrity. It is fixed in version 1.17.0.
AI Severity High
AI Vendor Hugging Face
AI Product huggingface/smolagents
AI Version 1.14.0

Additional Information

CVE List CVE-2025-5120
CWE List CWE-94
Bulletin Family cve

Description

A sandbox escape vulnerability was identified in huggingface/smolagents version 1.14.0, allowing attackers to bypass the restricted execution environment and achieve remote code execution (RCE). The vulnerability stems from the local_python_executor.py module, which inadequately restricts Python code execution despite employing static and dynamic checks. Attackers can exploit whitelisted modules and functions to execute arbitrary code, compromising the host system. This flaw undermines the core security boundary intended to isolate untrusted code, posing risks such as unauthorized code execution, data leakage, and potential integration-level compromise. The issue is resolved in version 1.17.0.

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.