HighVulnerability
GHSA-29pf-2h5f-8g72: HuggingFace transformers vulnerable to remote code execution
- Identifiers
- CVE-2026-4372GHSA-29pf-2h5f-8g72
- Published
- Record updated
- Affected
- transformers < 5.3.0
- Fixed in
- 5.3.0
- released March 4, 2026, 83 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
All versions of the HuggingFace transformers library before 5.3.0 contain a critical remote code execution flaw. A malicious config.json whose _attn_implementation_internal field points to an attacker-controlled Hub repository ID causes the library, when loaded via AutoModelForCausalLM.from_pretrained(), to download and run arbitrary Python code with the victim's full OS privileges. The flaw bypasses the trust_remote_code safeguard and requires no action beyond the standard documented usage.
Mitigation
Fixed in 5.3.0. Users are advised to upgrade to version 5.3.0 or later.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- transformersPyPILLM dependency since 2016-08-17 · 141 tracked dependents
Related items
- MediumCVE-2026-134825: Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote…Same vendor · NVD/CVE Database
- MediumCVE-2026-124588: huggingface finetrainers code injection via Library argumentSame vendor · NVD/CVE Database
- HighCVE-2026-119120: Crawl4AI Docker API lets clients choose the HuggingFace model it loadsSame vendor · NVD/CVE Database
- HighGHSA-wf6j-7hvr-gr93: Hydra legacy target blacklist permits unsafe PyYAML loadingSame vendor · Hugging Face Security Advisories
- MediumCVE-2026-100653: vLLM unpinned Hugging Face artifact loads for FunAudioChat and Tarsier2Same vendor · NVD/CVE Database