Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4963: Code Injection in huggingface smolagents

0
Medium
VulnerabilityCVE-2026-4963cvecve-2026-4963
Published: Fri Mar 27 2026 (03/27/2026, 17:05:20 UTC)
Source: CVE Database V5
Vendor/Project: huggingface
Product: smolagents

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 18:04:21 UTC

Technical Analysis

CVE-2026-4963 is a code injection vulnerability identified in huggingface's smolagents version 1.25.0.dev0, specifically in the functions evaluate_augassign, evaluate_call, and evaluate_with within the src/smolagents/local_python_executor.py file. This issue stems from an incomplete remediation of a prior vulnerability (CVE-2025-9959), allowing attackers to manipulate the code execution flow remotely. The vulnerability enables an attacker to inject arbitrary code that the vulnerable functions will execute, potentially compromising the host system. The attack vector is network-based with no privileges or authentication required, but user interaction is necessary to trigger the exploit. The vulnerability has a CVSS 4.0 base score of 5.3, reflecting medium severity due to partial impact on confidentiality, integrity, and availability, and the requirement for user interaction. The vendor has not issued a patch or responded to the disclosure, and the exploit code is publicly available, increasing the risk of exploitation. This vulnerability is particularly concerning in environments where smolagents is used to execute dynamic Python code or automate tasks, as it could lead to unauthorized command execution, data leakage, or service disruption. Organizations relying on this version should consider immediate mitigations to prevent exploitation.

Potential Impact

The impact of CVE-2026-4963 is significant for organizations using huggingface smolagents 1.25.0.dev0, especially in environments where the vulnerable functions process untrusted input or are exposed to external networks. Successful exploitation can lead to arbitrary code execution, compromising system confidentiality by exposing sensitive data, integrity by allowing unauthorized code changes, and availability by potentially disrupting services. Since the vulnerability requires no authentication and can be triggered remotely (albeit with user interaction), it broadens the attack surface. The availability of public exploit code increases the likelihood of attacks, including automated exploitation attempts. Organizations in AI research, machine learning pipelines, or automation relying on smolagents could face operational disruptions, data breaches, or lateral movement within their networks. The lack of vendor response and patches exacerbates the risk, leaving systems exposed until mitigations or updates are applied.

Mitigation Recommendations

1. Immediately restrict access to any services or interfaces running smolagents 1.25.0.dev0, especially those exposed to untrusted networks. 2. Implement strict input validation and sanitization on all inputs processed by the vulnerable functions (evaluate_augassign, evaluate_call, evaluate_with) to prevent injection of malicious code. 3. Use sandboxing or containerization to isolate the execution environment of smolagents, limiting the potential damage from code execution. 4. Monitor logs and network traffic for unusual or suspicious activity indicative of exploitation attempts. 5. Disable or limit features that allow dynamic code execution where feasible until a vendor patch is available. 6. Engage in active threat hunting for signs of compromise related to this vulnerability. 7. Follow huggingface communications for updates and apply patches promptly once released. 8. Consider upgrading to a non-vulnerable version if available or applying community-developed patches with caution. 9. Educate users about the risks of interacting with untrusted inputs that could trigger the vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-03-27T08:17:46.710Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69c6c6913c064ed76fdc293d

Added to database: 3/27/2026, 6:04:01 PM

Last enriched: 3/27/2026, 6:04:21 PM

Last updated: 3/28/2026, 1:03:18 AM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses