CVE-2025-14921CWE-502insecure-deserialization

CVE-2025-14921

High · published December 24, 2025

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

⚡ A crafty attacker can run arbitrary code on your system just by luring you to visit a malicious page or open a dodgy file! Think of this vulnerability like a waiter serving a dish that looks delicious but is actually a hidden allergy trigger — if you take a bite, it could land you in a world of hurt. In this case, the Hugging Face Transformers are serving up untrusted data without checking if it’s safe! An attacker could potentially execute any code under your user privileges, which is absolutely devastating! This means they could manipulate your system in ways you never intended, leading to data breaches or loss of control over your environment. Yikes!

Put simply

Think of this vulnerability like a waiter serving a dish that looks delicious but is actually a hidden allergy trigger — if you take a bite, it could land you in a world of hurt. In this case, the Hugging Face Transformers are serving up untrusted data without checking if it’s safe! This vulnerability arises from the deserialization of untrusted data in the parsing of model files. The lack of proper validation allows remote attackers to inject malicious code, which the system unwittingly processes.

What to do

An attacker could potentially execute any code under your user privileges, which is absolutely devastating! This means they could manipulate your system in ways you never intended, leading to data breaches or loss of control over your environment. Yikes! To safeguard against this, make sure to update your Hugging Face Transformers to the latest version where this exploit is patched. Additionally, educate users about the risks of opening unverified files or visiting suspicious links. Always maintain good security hygiene! You've got this! Follow these steps, and you'll keep your system safe and sound! 🛡️

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 Transformer-XL Model Deserialization of Untrusted Data Remote Code Execution Vulnerability
    cvelistv5