CVE-2025-5120 in huggingface smolagents
Exploitation of this CVE does not show up in logs, so there is no detection rule for it.
What the vulnerability is
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.
Affected software: huggingface smolagents
Scores
- CVSS: 10.0 (critical)
- EPSS: 29.64% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2025-07-27
What LogPulse has for it
- Detection rule: No
- Agent check (vulnerable version): No
- Mitigation: No
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.