CVE-2026-4372 is a critical remote code execution vulnerability in the Hugging Face Transformers library affecting versions prior to 5.3.0, specifically reported for versions 4.56.0 through 5.2.x when used with the optional kernels package. The flaw is triggered when a model configuration file contains a maliciously crafted _attn_implementation_internal attribute that references an attacker-controlled Hugging Face Hub repository. During normal model loading through APIs such as AutoModelForCausalLM.from_pretrained(), the library processes this untrusted configuration attribute, downloads attacker-controlled Python code, and executes it without adequate validation, sanitization, or sandboxing. The issue effectively bypasses the intended trust_remote_code=False protection by treating an internal configuration field as trusted input, creating a silent code execution path during standard documented usage.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical remote code execution vulnerability in the HuggingFace Transformers library caused by improper handling of untrusted model configuration data, allowing malicious config.json content to trigger arbitrary Python code execution during model loading and bypass trust_remote_code=False.
A critical remote code execution vulnerability in Hugging Face's Transformers library that allowed malicious AI models to execute arbitrary code during model loading, even with trust_remote_code=False enabled.
A related trust_remote_code bypass vulnerability in HuggingFace Transformers prior to 5.3.0 using the _attn_implementation_internal field in crafted config.json.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.