Loading...
Skip to main content

CVE-2025-14931 — Vulnerability in smolagents — CVE Details

CRITICAL

Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE

Published December 23, 2025Updated June 29, 2026Source: osv

Summary

Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face smolagents. Authentication is not required to exploit this vulnerability. The specific flaw exists within the parsing of pickle data. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-28312.

Advisory Timeline

  • First published December 23, 2025 (293 days ago).
  • Last revised June 29, 2026 — 188 days after initial publication.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
smolagents
pypi
0.1.0, 0.1.2, 0.1.3, 1.0.0 (+34 more)Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-14931?
Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2025-14931?
CVE-2025-14931 affects smolagents. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-14931 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-q9r5-6hrr-9ph7
PYSEC-2026-543

Related CVEs

  • CVE-2025-5120
    CRITICAL

    smolagents has Sandbox Escape Vulnerability in the local_python_executor.py Module

  • CVE-2026-61447
    CRITICAL

    PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets

  • CVE-2025-5120
    CRITICAL

    smolagents has Sandbox Escape Vulnerability in the local_python_executor.py Module

  • CVE-2026-61445
    CRITICAL

    PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies