CVE-2025-5120
Last modified
CVE-2025-5120 is a critical-severity vulnerability rated 10/10 on the CVSS scale. 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. EPSS estimates a 18.65% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Huggingface | Smolagents | 1.14.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-5120?
How severe is CVE-2025-5120?
How do I fix CVE-2025-5120?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-5113The Diviotec professional series exposes a web interface. On…8.6
- CVE-2025-5114A vulnerability has been found in easysoft zentaopms 21.5_20…9.1
- CVE-2025-5115In Eclipse Jetty, versions <=9.4.57, <=10.0.25, <=11.0.25, <…7.5
- CVE-2025-5116The WP Plugin Info Card plugin for WordPress is vulnerable t…6.4
- CVE-2025-5117The Property plugin for WordPress is vulnerable to Privilege…8.8
- CVE-2025-5119A vulnerability has been found in Emlog Pro 2.5.11 and class…9.8
- CVE-2025-5121An issue has been discovered in GitLab CE/EE affecting all v…9.9
- CVE-2025-5122The Map Block Leaflet plugin for WordPress is vulnerable to …6.4
- CVE-2025-5123The Contact Us Page – Contact People plugin for WordPress is…5.4
- CVE-2025-5124A vulnerability classified as critical has been found in Son…9.2
- CVE-2025-5125The Custom Post Carousels with Owl WordPress plugin before 1…4.8
- CVE-2025-5126A vulnerability was found in Teledyne FLIR AX8 up to 1.46.16…8.8
Are you affected by CVE-2025-5120?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
