CVE-2026-80047
Last modified
CVE-2026-80047 is a vulnerability of currently unknown severity. A vulnerability in Hugging Face Transformers (versions 4.49.0, <= 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).
Description
A vulnerability in Hugging Face Transformers (versions 4.49.0, <= 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.
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Hugging Face | Transformers | >= 4.49.0, <= 5.8.1 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-80047?
How severe is CVE-2026-80047?
How do I fix CVE-2026-80047?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-79996The User Registration & Membership WordPress plugin before …7.2
- CVE-2026-8000Insufficient validation of untrusted input in ChromeDriver i…8.8
- CVE-2026-8001Use After Free in Printing in Google Chrome on Linux, Mac, C…8.3
- CVE-2026-8002Use after free in Audio in Google Chrome on Mac prior to 148…8.8
- CVE-2026-8003Insufficient validation of untrusted input in TabGroups in G…5.4
- CVE-2026-8004Insufficient policy enforcement in DevTools in Google Chrome…4.3
- CVE-2026-80049Airbyte Platform resolves the workspace used for its authori…8.8
- CVE-2026-8005Insufficient validation of untrusted input in Cast in Google…4.3
- CVE-2026-80050ContiNew Admin fails to apply file-upload permission checks …6.5
- CVE-2026-80051github.com/graphql-go/graphql (GraphQL for Go) through 0.8.1…5.9
- CVE-2026-8006Insufficient policy enforcement in DevTools in Google Chrome…5.4
- CVE-2026-8007Insufficient validation of untrusted input in Cast in Google…7.5
Are you affected by CVE-2026-80047?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
