CVE-2025-14931
CRITICAL 10.0CVSS 3.0Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE
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.
- Published
- 23 Dec 2025
- Last modified
- 19 Oct 2026
- Assigned by
- zdi-disclosures@trendmicro.com
- NVD status
- Deferred
- Weakness
- CWE-502
- Also known as
- GHSA-q9r5-6hrr-9ph7PYSEC-2026-543
- Sources
- NVDJSONOSV GHSA-q9r5-6hrr-9ph7JSONOSV PYSEC-2026-543JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | zdi-disclosures@trendmicro.com (Secondary) | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | smolagents | <= 1.23.0 |
References
- https://www.zerodayinitiative.com/advisories/ZDI-25-1143/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-14931 · ADVISORY
- https://github.com/huggingface/smolagents · PACKAGE
- https://pypi.org/project/smolagents · PACKAGE
- https://github.com/advisories/GHSA-q9r5-6hrr-9ph7 · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 23 Dec 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Dec 2025)