Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE
CVE-2025-14931 · GHSA-q9r5-6hrr-9ph7 · published 2025-12-23 · updated 2026-05-07
- Severity
- Critical
- CVSS score
- 10.0
- Chance of exploitation (EPSS)
- 1.2%
- Fixed in
- No fix yet
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Total
- CISA SSVC
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.
No fixed release is listed yet for smolagents. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
- Unsafe deserialization. Do not let it load files, models or data from sources you do not trust, and keep its RPC and socket ports reachable only from localhost or hosts you trust.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| smolagents | PyPI | <= 1.23.0 | No fix yet |
- CriticalLMDeploy has Remote Code Execution by Pickle Deserialization via handle_zmq_recv in lmdeploy/lmdeploy/pytorch/disagg/conn/engine_conn.pylmdeploy
- CriticalLMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploylmdeploy
- CriticalSGLang: Unauthenticated RCE via --enable-custom-logit-processorsglang
- CriticalSGLanG: Multimodal scheduler deserializes untrusted pickle data on 0.0.0.0 ROUTER socketsglang
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- Criticalsmolagents has Sandbox Escape Vulnerability in the local_python_executor.py Modulesmolagents
- MediumHugging Face Smolagents XPath injection vulnerability in the search_item_ctrl_f functionsmolagents
- LowHugging Face Smolagents has an Injection issuesmolagents
- LowHugging Face Smolagents has a Server-Side Request Forgery issuesmolagents
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.