CVE-2025-14920CWE-502insecure-deserialization

CVE-2025-14920

High · published December 24, 2025

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

🚨 A sneaky deserialization flaw in Hugging Face Transformers allows remote attackers to execute arbitrary code just by getting a user to visit a malicious site! 🔥 Think of it like someone slipping a dangerous recipe into a cookbook—if the cook doesn’t check the ingredients, they might end up serving something deadly. In this case, the model files are the cookbook, and the untrusted data is the rogue recipe. An attacker could compromise the system and run any code they choose, potentially accessing sensitive data or taking control of the affected machine. This could lead to a cascading failure where the attacker exploits other systems connected to the compromised instance. Absolutely devastating!

Put simply

Think of it like someone slipping a dangerous recipe into a cookbook—if the cook doesn’t check the ingredients, they might end up serving something deadly. In this case, the model files are the cookbook, and the untrusted data is the rogue recipe. This vulnerability allows remote code execution due to improper validation of user-supplied data in model file parsing, leading to the deserialization of untrusted data. If an unsuspecting user opens a malicious file or visits an infected page, the attacker can execute code within that user's context.

What to do

An attacker could compromise the system and run any code they choose, potentially accessing sensitive data or taking control of the affected machine. This could lead to a cascading failure where the attacker exploits other systems connected to the compromised instance. Absolutely devastating! To protect yourself, make sure to patch to version X.X.X or higher as soon as it’s available. Additionally, educate users not to open unfamiliar files or visit untrusted links. Regularly audit your deployment to ensure no vulnerable components are present. You’ve got this! By following these steps, you’ll strengthen your defenses 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.00360 · 28.6th 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 Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerability
    cvelistv5