CVE-2025-14920
7.8Hugging Face · Transformers
A deserialization vulnerability in Hugging Face Transformers allows remote attackers to execute arbitrary code via malicious model files when user interaction is present.
Executive summary
A critical deserialization vulnerability in the Hugging Face Transformers Perceiver model allows attackers to achieve remote code execution on systems processing untrusted model files.
Vulnerability
This vulnerability, categorized as CWE-502, stems from improper validation of user-supplied data during the parsing of model files. An attacker can leverage this flaw to execute arbitrary code in the context of the user, provided the user is enticed to open a malicious file or visit a compromised page.
Business impact
The potential for remote code execution poses a significant threat to data integrity and system confidentiality. Successful exploitation could grant an attacker full control over the affected system, leading to unauthorized access to sensitive machine learning models or underlying infrastructure. With a CVSS score of 7.8, this vulnerability is classified as High severity due to its potential for total impact.
Remediation
Immediate Action: Organizations should restrict the loading of model files from untrusted sources and monitor for vendor updates to the Transformers library.
Proactive Monitoring: Security teams should implement logging and monitoring for anomalous file processing activity or unexpected system calls originating from the Transformers execution environment.
Compensating Controls: Ensure that users operate within restricted environments or containers that enforce the principle of least privilege, thereby limiting the potential damage if code execution occurs.
Exploitation status
Public Exploit Available: No — there is no confirmed public exploit available in the provided data.
Analyst recommendation
Given the capability for remote code execution, this vulnerability represents a serious risk to development and production environments utilizing Transformers. Administrators must prioritize updating the software as soon as a fix is released and ensure that all model files are sourced from trusted, verified repositories to prevent exploitation.
More Hugging Face CVEs
History
- Disclosed CVE record published
- Published in the daily brief high section
- Published in the daily brief high section
- Analyst report written