GHSA-29pf-2h5f-8g72 · Severity: high — A critical remote code execution vulnerability exists in all versions of the HuggingFace...
A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library prior to version 5.3.0. The vulnerability allows an attacker to craft a malicious `config.json` file containing the `_attn_implementation_internal` field set to an attacker-controlled HuggingFace Hub repository ID. When a victim loads this model using the standard `AutoModelForCausalLM.from_pretrained()` API, the library downloads and executes arbitrary Python code from the attacker's repository with the victim's full OS privileges. This issue arises due to unfiltered deserialization of configuration attributes, insufficient sanitization of internal fields, and unsandboxed execution of downloaded kernels. The vulnerability bypasses the `trust_remote_code` security mechanism, is invisible to the victim, and exploits the standard documented usage pattern, making it particularly severe. Users are advised to upgrade to version 5.3.0 or later to mitigate this issue.
Conclusion & alert: CVE-2026-4372 is rated Exploit Available (55.2/100): CVSS High severity, with low exploitation likelihood (EPSS 0.09%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-05 | 0.03% | 0.09% | +0.06% |
| 2 | 2026-05-25 | — | 0.03% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.8 | 3.0 | HIGH |
|
1.8 | 5.9 | [email protected] |
GHSA-29pf-2h5f-8g72 · Severity: high — A critical remote code execution vulnerability exists in all versions of the HuggingFace...
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| huggingface | transformers | < 5.3.0 | cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/huggingface/transformers/commit/a7f8e7ff37d87d1a1a0c8cf607971c607741452f | Patch |
| https://huntr.com/bounties/1f693a6e-6836-4b8b-a0bd-ca036fba8884 | Exploit Third Party Advisory |