CVE-2025-14924CWE-502insecure-deserialization

CVE-2025-14924

High · published December 24, 2025

CVSS v3.0
7.8
EPSS
0%
Percentile
24.8
In the wild
Unconfirmed
What it is

🚨 A malicious checkpoint could let attackers run arbitrary code in Hugging Face Transformers! 🤯 Think of it like a recipe book that doesn’t check the ingredients. If you hand it a bag of suspicious ‘magic powder,’ it might bake you something dangerous instead of a delicious cake! An attacker could execute any code they desire simply by luring a user to visit a malicious page or open a harmful file. This could lead to a complete takeover of the system, putting sensitive data at risk and allowing for potentially devastating consequences.

Put simply

Think of it like a recipe book that doesn’t check the ingredients. If you hand it a bag of suspicious ‘magic powder,’ it might bake you something dangerous instead of a delicious cake! This vulnerability stems from improper validation of user-supplied data during the deserialization of checkpoints in Hugging Face Transformers, enabling attackers to execute code within the context of the current process.

What to do

An attacker could execute any code they desire simply by luring a user to visit a malicious page or open a harmful file. This could lead to a complete takeover of the system, putting sensitive data at risk and allowing for potentially devastating consequences. To protect yourself, make sure to patch to the latest version of Hugging Face Transformers. Additionally, educate users on avoiding suspicious links and files. Always validate data inputs rigorously! Fear not, security hero! With these steps, you'll have this vulnerability locked down in no time! 🛡️

The record
Technical detail
CVSS v3.0
7.8 · HIGH
Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00329 · 24.8th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2025-12-24T02:15Z
Affected products (1)
ProductVersionsFixed in
huggingface/transformersall versions—
References (1)
EPSS history
Timeline
  • 23 DEC 21:04Z
    Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability
    cvelistv5