CVE-2025-14927CWE-94code-injection

CVE-2025-14927

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 only needs a malicious checkpoint to execute arbitrary code on your Hugging Face Transformers installation! ⚡ Think of this like a chef who accepts any recipe, even those with toxic ingredients—if they don’t check the recipe's validity before cooking, the results could be disastrous! If exploited, this vulnerability could lead to an attacker executing harmful code that compromises your system. The consequences are severe and could allow the attacker to hijack your system or access sensitive user data, all thanks to a single unverified checkpoint. Absolutely devastating!

Put simply

Think of this like a chef who accepts any recipe, even those with toxic ingredients—if they don’t check the recipe's validity before cooking, the results could be disastrous! The vulnerability exists in the convert_config function, where user-supplied strings are not properly validated before being executed as Python code. This oversight enables remote code execution under the current user's context, making it a serious threat.

What to do

If exploited, this vulnerability could lead to an attacker executing harmful code that compromises your system. The consequences are severe and could allow the attacker to hijack your system or access sensitive user data, all thanks to a single unverified checkpoint. Absolutely devastating! To mitigate this risk, ensure you update your Hugging Face Transformers library to the latest version, where this issue has been addressed. Additionally, always validate and sanitize any user-provided input before executing it as code. Stay vigilant! You’ve got this! Follow these steps, and you’ll lock down your system 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 SEW-D convert_config Code Injection Remote Code Execution Vulnerability
    cvelistv5