Vulnerability · Published Dec 23, 2025 · Assigned by zdi

CVE-2025-14931Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability

Critical 10.0

In plain English

A critical-severity unsafe deserialization in smolagents from Hugging Face. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities).

Severity (CVSS 3.0)10.0Critical
Exploit odds (30 days)1.2%top 30.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIsmolagentsno fix listedGHSA-q9r5-6hrr-9ph7
PyPIsmolagentsno fix listedPYSEC-2026-543

Affected products (as reported)

VendorProductVersions
Hugging Face smolagents 1.22.0

Weakness: CWE-502 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References