# CVE-2025-14924: Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability

> CVE-2025-14924: Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. CVSS 7.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-14924
Last updated: 2026-10-19T22:10:00Z

- Published: 2025-12-23 21:04 UTC · Updated: 2026-10-19 22:10 UTC · Assigner: zdi
- CVSS: 7.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.33%, 26th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-502

## Description

Hugging Face Transformers megatron\_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of checkpoints. 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 current process. Was ZDI-CAN-27984.

## Affected vendors and products

- Hugging Face: Transformers

## Tracked companies

- [Hugging Face](https://rewindex.com/company/hugging-face.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-14924)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-14924)
- [https://www.zerodayinitiative.com/advisories/ZDI-25-1141/](https://www.zerodayinitiative.com/advisories/ZDI-25-1141/)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-14924 · Markdown: https://rewindex.com/cve/CVE-2025-14924.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-14924 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:41.829Z
