ThreatCluster

Hugging Face Transformers Vulnerability Allows Unauthorized Code Execution

First seen 2 Sep 2026, 08:44 UTC Kb.CertCybersecuritynewsGbhackerswww.kb.cert.orgwww.cve.org 58

Article Content

Browse articles
ThreatCluster

A vulnerability in the Hugging Face Transformers library (versions 4.49.0 to 5.8.1) enables remote attacker-controlled Python files to be written to a user's local disk without consent. This issue, tracked as CVE-2026-80047, arises from the library's custom generation-loading process, which performs a remote module fetch and local cache write before evaluating user consent. As a result, malicious code can be stored in the user's cache, potentially leading to unintended execution during future model loads. The flaw affects users who load models from untrusted repositories and is particularly concerning in environments where cache paths are reused. Currently, no patch or advisory from the vendor is available, and users are advised to avoid untrusted models and inspect their cache regularly. The vulnerability was reported by Prasanna Dabi and documented by the CERT Coordination Center.

Key Points: • CVE-2026-80047 affects Hugging Face Transformers versions 4.49.0 to 5.8.1. • Malicious Python files can be written to disk without user consent. • No vendor patch is available; users should avoid untrusted model repositories.

Ask AI about this cluster

Timeline

2026-09-01
CVE-2026-80047 published
A vulnerability in Hugging Face Transformers allows unauthorized code execution prior to user consent.
Kb.Cert
2026-09-02
Vulnerability reported in multiple outlets
Cybersecurity news outlets report on the Hugging Face vulnerability, detailing its implications.
Cybersecuritynews
2026-09-02
Gbhackers reports on the flaw
Gbhackers confirms the vulnerability and its potential impact on users of the Hugging Face library.
Gbhackers