Hugging Face Transformers Code Injection Remote Code Execution Vulnerability

Vulnerability

A remote code execution vulnerability has been identified in Hugging Face Transformers. This issue arises from the convert_config function, where user-supplied strings are not properly validated before being used to execute Python code. As a result, remote attackers can execute arbitrary code on affected installations. Exploitation requires user interaction, as the target must convert a malicious checkpoint.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the affected system, executed in the context of the current user.

Remediation

Given the nature of the vulnerability, the recommended mitigation strategy is to limit interaction with the product.

Added: Dec 23, 2025, 9:24 PM
Updated: Dec 23, 2025, 9:24 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
10.0
exploitability
4.4
remediation
7.9
relevance
1.6
threat
0.0
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.