CVE-2025-14928
Code Injection in Hugging Face Transformers convert_config Enables RCE
Publication date: 2025-12-23
Last updated on: 2025-12-23
Assigner: Zero Day Initiative
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| hugging_face | transformers | 3.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2025-14928 is a remote code execution vulnerability in the Hugging Face Transformers library, specifically in the convert_config function of the HuBERT model. The vulnerability occurs because the function does not properly validate user-supplied strings before using them to execute Python code. An attacker can exploit this by tricking a user into converting a malicious checkpoint, which then allows the attacker to execute arbitrary code with the privileges of the current user. [1]
How can this vulnerability impact me? :
This vulnerability can allow a remote attacker to execute arbitrary code on your system with the same privileges as the current user. This could lead to unauthorized access, data theft, system compromise, or further attacks depending on the permissions of the user running the vulnerable software. Exploitation requires user interaction, specifically converting a malicious checkpoint. [1]
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, avoid converting untrusted or malicious checkpoints using the convert_config function in the Hugging Face Transformers HuBERT model. Ensure that only trusted sources are used for checkpoint conversion to prevent execution of arbitrary code. Additionally, monitor for updates or patches from Hugging Face that address this vulnerability and apply them promptly. [1]