A vulnerability in Hugging Face Transformers (versions >= 4.49.0 and <= 5.8.1) allows remote Python files to be written to local disk without user consent when using GenerativePreTrainedModel.load_custom_generate(). The function fetches and caches a remote module file before performing the required trust_remote_code consent check, inverting the security model enforced by other code-loading paths (such as AutoConfig, AutoModel, and AutoTokenizer). As a result, attacker‑controlled Python code from custom_generate/generate.py is copied into the user’s ~/.cache/huggingface/modules directory even if the user declines the trust prompt. Although execution is correctly gated, the file write is not reversible and can persist across sessions. This can lead to persistent, unauthorized files on disk and stale cache collisions where cached attacker code may later be executed during trusted model loads. The issue stems from an unconditional file write in dynamic_module_utils.py prior to any trust verification.
CVE-2026-80047
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-09-01. CISA-ADP (Vulnrichment) CVSS v3.1 baseline 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 7.8(high)
- EG Risk
- 35(Track)EG Risk 35/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 0%
- KEV
- Not listed
Published
September 1, 2026
Last Modified
September 15, 2026
Advisory Details (2)
Auto-updated Sep 3, 2026VU#456290 - Hugging Face Transformers library writes remote code to disk prior to consent check
https://kb.cert.org/vuls/id/456290GitHub - huggingface/transformers: 🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training. · GitHub
https://github.com/huggingface/transformersVendor Advisories for CVE-2026-80047(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 20× in last 7d / 63× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-18 21:34 UTCGHSA enrichment
- 2026-09-18 09:10 UTCGHSA enrichment
- 2026-09-17 20:45 UTCEG score recompute
- 2026-09-17 20:45 UTCGHSA enrichment
- 2026-09-17 07:53 UTCGHSA enrichment
- 2026-09-16 19:29 UTCEG score recompute
- 2026-09-16 19:29 UTCGHSA enrichment
- 2026-09-16 14:08 UTCEPSS rescore
- 2026-09-16 07:04 UTCEG score recompute
- 2026-09-16 07:04 UTCGHSA enrichment
- 2026-09-16 05:15 UTCEPSS rescore
- 2026-09-15 18:40 UTCGHSA enrichment
- 2026-09-15 16:43 UTCGHSA enrichment
- 2026-09-15 04:18 UTCGHSA enrichment
- 2026-09-14 15:53 UTCGHSA enrichment
- 2026-09-14 03:28 UTCEG score recompute
- 2026-09-14 03:28 UTCGHSA enrichment
- 2026-09-13 15:04 UTCGHSA enrichment
- 2026-09-13 02:40 UTCGHSA enrichment
- 2026-09-12 14:15 UTCGHSA enrichment
- 2026-09-12 01:51 UTCEG score recompute
- 2026-09-12 01:51 UTCGHSA enrichment
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 13:27 UTCEG score recompute
Show 38 moreShow fewer
- 2026-09-11 13:27 UTCGHSA enrichment
- 2026-09-11 01:02 UTCGHSA enrichment
- 2026-09-10 12:38 UTCEG score recompute
- 2026-09-10 12:38 UTCGHSA enrichment
- 2026-09-10 00:14 UTCGHSA enrichment
- 2026-09-09 11:50 UTCGHSA enrichment
- 2026-09-08 23:24 UTCEG score recompute
- 2026-09-08 23:24 UTCGHSA enrichment
- 2026-09-08 22:01 UTCEPSS rescore
- 2026-09-08 10:04 UTCGHSA enrichment
- 2026-09-07 21:39 UTCGHSA enrichment
- 2026-09-07 09:14 UTCGHSA enrichment
- 2026-09-06 20:46 UTCGHSA enrichment
- 2026-09-06 08:21 UTCGHSA enrichment
- 2026-09-05 19:57 UTCEG score recompute
- 2026-09-05 19:56 UTCGHSA enrichment
- 2026-09-05 15:31 UTCEPSS rescore
- 2026-09-05 07:32 UTCGHSA enrichment
- 2026-09-04 19:08 UTCEG score recompute
- 2026-09-04 19:08 UTCGHSA enrichment
- 2026-09-04 06:43 UTCEG score recompute
- 2026-09-04 06:43 UTCGHSA enrichment
- 2026-09-04 05:07 UTCEPSS rescore
- 2026-09-03 18:05 UTCEG score recompute
- 2026-09-03 18:05 UTCGHSA enrichment
- 2026-09-03 15:31 UTCGHSA enrichment
- 2026-09-03 14:47 UTCEG score recompute▲ 7.80
- 2026-09-03 14:46 UTCGHSA enrichment
- 2026-09-03 14:43 UTCMITRE cvelistV5CVSS v3 → 7.8 · severity → HIGH
- 2026-09-02 14:12 UTCEPSS rescore
- 2026-09-01 19:30 UTCGHSA enrichment
- 2026-09-01 19:25 UTCNVD update
- 2026-09-01 18:25 UTCGHSA enrichment
- 2026-09-01 18:22 UTCMITRE cvelistV5
- 2026-09-01 15:40 UTCGHSA enrichment
- 2026-09-01 14:32 UTCNVD update
- 2026-09-01 13:46 UTCEG score recompute
- 2026-09-01 13:44 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-80047?
When was CVE-2026-80047 disclosed?
Is CVE-2026-80047 actively exploited?
What is the CVSS score of CVE-2026-80047?
How do I remediate CVE-2026-80047?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-80047
Is Your Infrastructure Affected by CVE-2026-80047?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.