Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 5.3 (Medium) with network-accessible attack vector (AV:N), low attack complexity (AC:L), and no privileges required (PR:N) indicates a straightforward remote exploitation path. However, the presence of user interaction (UI:P) moderates impact scope to low confidentiality, integrity, and availability effects (VC:L, VI:L, VA:L). Exploitation probability is marked as Proof-of-Concept (E:P), elevated by public exploit code availability on GitHub. Real-world risk is elevated beyond the CVSS score due to: (1) confirmed public exploit availability reducing barrier to attack, (2) lack of vendor response indicating no coordinated patch timeline, (3) presence of user interaction requirement suggesting social engineering or insider attack vectors, and (4) incomplete prior remediation suggesting architectural code injection susceptibility. This is NOT a high-CVSS-low-real-risk scenario; the combination of accessible exploits, unresponsive vendor, and network-accessible code execution creates moderate-to-high operational risk for organizations deploying this library in user-facing applications. |
| Exploit ScenarioDerived | An attacker without authentication submits a specially crafted input to a web application using smolagents that triggers the evaluate_call or evaluate_augassign function. The malicious input bypasses insufficient sanitization checks (the incomplete fix for CVE-2025-9959) and causes arbitrary Python code execution within the application's runtime context. If the application requires minimal user interaction to process such inputs-such as through an API endpoint that accepts JSON expressions or a chatbot interface that evaluates user queries-the attacker can read sensitive data, modify application state, or pivot to the host system. Public exploit code is available on GitHub (https://gist.github.com/YLChen-007/35b7d46e892266a0ed6dbe57802858be), lowering the skill barrier for attack execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 27, 2026
Code injection in HuggingFace smolagents 1.25.0.dev0 allows remote attackers without authentication to execute arbitrary code through incomplete remediation of CVE-2025-9959 in the local Python executor component. The vulnerability affects the evaluate_augassign, evaluate_call, and evaluate_with functions in src/smolagents/local_python_executor.py, with publicly available exploit code and active public disclosure despite lack of vendor response.
RemediationAI
No vendor-released patch has been confirmed at time of analysis, as HuggingFace did not respond to early disclosure. Immediate remediation requires upgrading to a patched version once available; monitor HuggingFace repositories and security advisories at https://github.com/huggingface/smolagents for release announcements. Until a vendor patch is released, apply compensating controls: restrict network access to smolagents instances to trusted internal networks only, disable or sandbox the local Python executor component if not essential to application functionality, implement input validation and filtering on all user-supplied data passed to evaluate_augassign/evaluate_call/evaluate_with functions to block common code injection patterns, and enforce code review processes for any custom extensions to the executor. Consider temporarily migrating critical workloads to alternative agent frameworks without code injection vulnerabilities until patched versions are available.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HuggingFace smolagents is a Python agent framework that includes a local Python code executor for evaluating expressions and function calls. The vulnerability resides in CWE-94 (Improper Control of Generation of Code, 'Code Injection'), specifically within the Python executor's expression evaluation logic. The affected functions process user-supplied input that is inadequately sanitized before execution in a Python runtime context. This represents an incomplete fix to CVE-2025-9959, indicating that initial patching efforts failed to fully eliminate the code injection pathway. The CPE affected is cpe:2.3:a:huggingface:smolagents:*:*:*:*:*:*:*:* across affected versions in the 1.25.0 development line.
Know when Hugging Face gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A weakness has been identified in huggingface smolagents 1.25.0.dev0. This affects the function evaluate_augassign/evaluate_call/evaluate_with of the file src/smolagents/local_python_executor.py of the component Incomplete Fix CVE-2025-9959. This manipulation causes code injection. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way. If you want to get best quality of vulnerability data, you may have to visit VulDB.
Executive ViewAI
Organizations using A weakness should be aware of moderate risk from CVE-2026-4963, a code injection vulnerability rated CVSS 5.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Hugging Face
View allThe huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data
Unauthenticated remote code execution in HuggingFace LeRobot (versions 0 through 0.5.1) stems from pickle.loads() being
Arbitrary Python code execution in LMDeploy 0.12.1 through 0.12.2 lets an attacker who publishes a malicious model on Hu
Deserialization of attacker-supplied pickle data in the deprecated pandas packaged builder of Hugging Face Datasets (all
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R
Path traversal in Hugging Face Datasets up to 5.0.0 allows attackers to read arbitrary local files when a victim process
Server-side request forgery in HuggingFace text-generation-inference through version 3.3.7 enables unauthenticated remot
Path traversal in Hugging Face Accelerate through 1.14.0 exposes two distinct attack outcomes when a user loads a crafte
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe
EUVD-2026-16726
GHSA-54fq-v6x8-244g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB