Hugging Face Transformers Deserialization of Untrusted Data Remote Code Execution Vulnerability

Vulnerability

A remote code execution vulnerability has been identified in Hugging Face Transformers, specifically within the megatron_gpt2 component. This issue arises from improper validation of user-supplied data during the parsing of checkpoints, allowing for the deserialization of untrusted data. As a result, remote attackers can execute arbitrary code on affected installations. Exploitation of this vulnerability requires user interaction, such as visiting a malicious page or opening a harmful file.

Impact

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

Remediation

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

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

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
10.0
exploitability
4.4
remediation
7.9
relevance
1.7
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.