CVE-2025-14930

7.8

Hugging Face · Transformers

A deserialization vulnerability in Hugging Face Transformers GLM4 weight parsing allows remote attackers to execute arbitrary code via malicious files or pages.

Executive summary

A critical deserialization vulnerability in Hugging Face Transformers allows for remote code execution, posing a significant risk to systems processing untrusted model weights.

Vulnerability

The vulnerability is a deserialization of untrusted data flaw (CWE-502) occurring during the parsing of model weights. An attacker can achieve remote code execution in the context of the current process if a user is induced to open a malicious file or visit a compromised page.

Business impact

The ability for an attacker to execute arbitrary code on a system hosting or utilizing the Transformers library represents a severe security risk. This could lead to a full compromise of the host environment, resulting in unauthorized data access, intellectual property theft, or persistent malware installation. Given the CVSS score of 7.8, the potential for total impact on confidentiality, integrity, and availability necessitates prompt attention.

Remediation

Immediate Action: Review the official Hugging Face security advisories for the release of a patched version of the Transformers library, and update your local installations immediately upon availability.

Proactive Monitoring: Monitor system logs for unusual process execution patterns or unexpected network traffic originating from environments where model weights are parsed.

Compensating Controls: Restrict the execution of model parsing tasks to isolated, non privileged containers or sandboxed environments to limit the potential impact of a successful exploit.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

Due to the severity of remote code execution, organizations should treat this vulnerability as a high priority. Until a patch is confirmed and applied, maintain strict control over the source of model weights and avoid processing files from untrusted or unverified locations. Monitor vendor communications closely for the release of a fix and deploy it as soon as it becomes available.

More Hugging Face CVEs

Sources