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

Critical 10.0 Published Updated

Remote attackers can execute arbitrary code via unsafe pickle deserialization in Hugging Face smolagents without authentication.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-14931?

CVE-2025-14931 is a critical unsafe deserialization vulnerability in Hugging Face smolagents, published on 23 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-502

Which versions are affected by CVE-2025-14931?

3 open source packages ship an affected version, including smolagents.

PackageAffectedFixed in
smolagents PyPIAll versions to 1.23.0None
smolagents PyPIAll versions to 1.23.0None
smolagents PyPIAll versions to 1.23.0None

How do I fix CVE-2025-14931?

No fix has been published for CVE-2025-14931 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2025-14931 being exploited?

There is no known exploitation of CVE-2025-14931 in the wild and no public exploit code.

Sources

Also known as GHSA-q9r5-6hrr-9ph7, PYSEC-2026-543.

Is CVE-2025-14931 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free