VU#456290: Hugging Face Transformers library writes remote code to disk prior to consent check
CVE-2026-80047: Hugging Face Transformers 4.49.0 through 5.8.1 writes attacker-controlled Python files to disk before the trust_remote_code consent check.
CERT/CC vulnerability note VU#456290 describes CVE-2026-80047 in the Hugging Face Transformers library, affecting versions 4.49.0 through 5.8.1. The library performs a remote module fetch and writes attacker-controlled Python files to the local disk before evaluating the trust_remote_code consent prompt, without user authorization. This violates the security contract enforced across other dynamic module-loading paths in the library. Transformers is a primary framework for training and inference across NLP, vision, audio, video, and multimodal machine learning systems.
- Affects Hugging Face Transformers versions 4.49.0 through 5.8.1
- Remote module fetch and local cache write occur before trust_remote_code consent
- Tracked by CERT/CC as VU#456290 and CVE-2026-80047
- Impact is unauthorized local file writes rather than immediate code execution
- Vendors
- Hugging FaceCERT/CC
- Products
- Transformers
- Organizations
- Hugging FaceCERT/CC
From the original article
Overview A vulnerability in the Hugging Face Transformers library (versions 4. 49. 0 through 5.
kb.cert.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.