---
title: "CVE-2025-14931: Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE"
url: https://erroneo.us/security/cve/CVE-2025-14931/
description: "CVE-2025-14931 (smolagents (PyPI)): Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability.…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-12-23
date_modified: 2026-05-07
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-14931"
kev: false
cvss: 10.0
epss: 0.01087
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-14931: Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.1% , percentile 65: FIRST’s model estimates a 1.1% chance of exploitation activity in the next 30 days, higher than 65% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes smolagents (PyPI) <= 1.23.0, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

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

- PyPI `smolagents` <= 1.23.0 → fixed: none listed

## Affected products (CVE record)

- Hugging Face smolagents: 1.22.0

## Severity

- zdi CVSS 3.0: 10 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 10.0 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.09% probability of exploitation activity in the next 30 days; percentile 65.

## Sources

- [GitHub Advisory GHSA-q9r5-6hrr-9ph7](https://github.com/advisories/GHSA-q9r5-6hrr-9ph7)
- [CVE.org record CVE-2025-14931](https://www.cve.org/CVERecord?id=CVE-2025-14931)
- [NVD entry CVE-2025-14931](https://nvd.nist.gov/vuln/detail/CVE-2025-14931)
- [ZDI-25-1143](https://www.zerodayinitiative.com/advisories/ZDI-25-1143/)

---
Source page: https://erroneo.us/security/cve/CVE-2025-14931/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
