NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · smolagents

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

criticalCVSS 3.0 10.0GHSA-q9r5-6hrr-9ph7

Hugging Face smolagents up to 1.23.0 deserializes pickle data in its Remote Python Executor without validation. A remote, unauthenticated attacker who can reach the executor can run code as the service account. No patched version is listed. The vendor closed the report as a duplicate, and ZDI's only advice is to restrict access to the product.

Published Dec 23, 2025 · Updated May 7, 2026 · Analysis Nov 1, 2026

What an attacker can do

The flaw sits in the parsing of pickle data in the Remote Python Executor. Pickle is not a data format only: loading a crafted pickle runs attacker-chosen code. The executor deserializes input it receives without checking it, which is CWE-502.

The attacker needs network access to the executor and no credentials or user action. Code runs in the context of the service account that hosts the executor. The CVSS 3.0 score is 10.0 with a changed scope. In smolagents, the remote executor is where agent-generated Python runs, away from the main process. A server that was meant to contain untrusted agent code can itself become the way in, and the code runs with whatever secrets, files and network reach that service has.

The ZDI page does not describe the executor component beyond the advisory title, so check how your deployment exposes it. Do not assume a private network protects it.

Who is affected

pip package smolagents <= 1.23.0. The data lists no fixed version. Exposure concerns deployments that use a remote Python executor reachable over a network. If you only run code with local executors, check that no remote executor service is running.

Check the version:

pip show smolagents

Then list listening services on the hosts where an executor runs, for example with ss -ltnp.

smolagents

Ecosystem
PyPI
Affected
<= 1.23.0
Fixed in
No patched version yet
Check
pip show smolagents

How to fix it

There is no patched version yet. The package data shows no fixed release, and the ZDI advisory states the vendor closed the case as a duplicate. ZDI's guidance is that the only salient mitigation is to restrict interaction with the product.

In practice: do not expose the remote executor to untrusted networks. Allow connections only from the agent host, using firewall rules or a private network with authentication in front. Run the executor under a low-privilege account in a container with no secrets mounted. Watch the smolagents repository and the GitHub advisory for a fix, and upgrade when one ships.

How to tell if you were hit

The sources give no log signatures. Look for connections to the executor's port from hosts other than your agent, and for unexpected child processes, shells or outbound connections from the executor's service account. Check for new files written by that account. Because the payload is pickle data, any capture of traffic to the executor may show serialized Python objects with calls to modules such as os or subprocess. Beam records agent shell commands, which helps when an agent calls the executor from a developer machine, but it does not see network attacks on a remote service.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Questions

Is there a fix for CVE-2025-14931?

No patched version is listed. ZDI says the vendor closed the report as a duplicate and suggests restricting interaction with the product.

Does the attacker need credentials?

No. The advisory says authentication is not required. The attacker needs network access to the Remote Python Executor.

Why is pickle dangerous here?

Unpickling untrusted data can run arbitrary code during loading. The executor parses pickle data it receives without validating it.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More smolagents vulnerabilities

All smolagents entries