CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2025 · Huggingface

CVE-2025-5120
Huggingface Smolagents vulnerability

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.

High priority: this vulnerability is rated critical and can be attacked over the network without a login.

Affected products

Smolagents. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Huggingface Smolagents runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Huggingface products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.