Disclosure
CVE-2026-80047 lets Transformers 4.49.0 through 5.8.1 write an attacker-controlled Python file to the module cache before trustremotecode consent is evaluated.
CVE-2026-80047 in Transformers 4.49.0-5.8.1 lets loadcustomgenerate() write a remote http://generate.py to the local module cache before trustremotecode consent is checked.
Transformers 4.49.0 through 5.8.1 writes an attacker-controlled Python file to ~/.cache/huggingface/modules before asking whether remote code should be trusted, and a decline still leaves that file on disk.
CERT/CC published the flaw as VU#456290, assigned CVE-2026-80047, from a report by Prasanna Dabi; Bob Kemerer wrote the advisory.
Move consent ahead of retrieval in dynamicmodule_utils.py, matching every other loader in the library, and until that lands, treat the Hugging Face module cache as untrusted input.
CERT/CC reports the file persists even if the user declines, with no patch available yet.
https://news.ojobit.com/story/hugging-face-transformers-remote-code-disk-before-consent-cba6cf
Post summary
The advisory details a vulnerability in Hugging Face Transformers that allows attacker-controlled Python files to be written to the module cache before remote‑code consent is obtained, exposing potential remote code execution risks, but no patch or exploit code is available yet.