CVE-2025-14928CWE-94code-injection

CVE-2025-14928

High · published December 24, 2025

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

⚡ A crafty attacker can execute malicious code just by convincing a user to convert a specially crafted checkpoint in Hugging Face Transformers! 🚀 Think of it like a recipe book that lets anyone add their own secret ingredient without checking if it’s safe — a cook could end up with a dish that’s downright dangerous! 🍽️ If exploited, an attacker could gain control over the system running Hugging Face Transformers, potentially accessing sensitive data or manipulating processes at will. This could lead to a catastrophic loss of integrity and trust in your applications! 🔥

Put simply

Think of it like a recipe book that lets anyone add their own secret ingredient without checking if it’s safe — a cook could end up with a dish that’s downright dangerous! 🍽️ The vulnerability lies within the `convert_config` function, which fails to properly validate user-supplied strings before executing them as Python code. This oversight allows attackers to run arbitrary code in the context of the current user.

What to do

If exploited, an attacker could gain control over the system running Hugging Face Transformers, potentially accessing sensitive data or manipulating processes at will. This could lead to a catastrophic loss of integrity and trust in your applications! 🔥 To mitigate this risk, update Hugging Face Transformers to the latest version as soon as it’s available. Additionally, educate users about the dangers of converting unknown or untrusted checkpoints to prevent exploitation. 🛡️ You’ve got this! Follow these steps and your environment will be much safer 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.00342 · 26.5th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
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 HuBERT convert_config Code Injection Remote Code Execution Vulnerability
    cvelistv5