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

- Severity: Critical 10.0 (CVSS:3.0, scored by zdi) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.53%, higher than 75% of CVEs (2026-11-30)
- Published: 2025-12-23T21:04:58.265Z
- Modified: 2026-10-19T22:10:00.130Z
- Also known as: GHSA-q9r5-6hrr-9ph7, PYSEC-2026-543
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: zdi

## 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.

(As written by CVE List.)

## Affected

- Hugging Face smolagents: 1.22.0
- smolagents (PyPI): up to 1.23.0

## Every score

- zdi: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-25-1143/>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14931> (advisory)
- <https://github.com/huggingface/smolagents> (package)
- <https://www.zerodayinitiative.com/advisories/ZDI-25-1143> (web)
- <https://pypi.org/project/smolagents> (package)
- <https://github.com/advisories/GHSA-q9r5-6hrr-9ph7> (advisory)

## Sources

- CVE List: [CVE-2025-14931](https://www.cve.org/CVERecord?id=CVE-2025-14931), CVE Terms of Use, modified 2025-12-26
- GitHub Advisory Database: [GHSA-q9r5-6hrr-9ph7](https://github.com/advisories/GHSA-q9r5-6hrr-9ph7), CC-BY-4.0, modified 2026-06-29
- NVD: [CVE-2025-14931](https://nvd.nist.gov/vuln/detail/CVE-2025-14931), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-543](https://osv.dev/vulnerability/PYSEC-2026-543), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2025-14931 · Whole record: https://cve.day/CVE-2025-14931.json · Rebuilt by cve.day 2026-11-25T22:59:09.823Z
