CVE Catalog

CVE-2025-14921

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.33%

25th percentile - higher than 25% of all known CVEs

Summary

Deserialization of untrusted data in Hugging Face Transformers for the Transformer-XL model when parsing model files. Lack of validation of user-supplied data can lead to deserialization of untrusted data and remote code execution.

Risk Assessment

An attacker can execute arbitrary code in the context of the current user if the victim opens a malicious file or page. User interaction is required, but it can lead to full system compromise.

Recommendation

Update Hugging Face Transformers library to the latest patched version. Avoid loading untrusted model files.

Other vulnerabilities in Hugging Face Transformers

See all
Original NVD description (English source)

Hugging Face Transformers Transformer-XL Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of model files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-25424.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS