Hugging Face Diffusers Vulnerabilities Enable Code Execution Attacks

Hugging Face Diffusers Vulnerabilities Enable Code Execution Attacks

First seen 28 Jul 2026, 21:24 UTC Infosecurity-Magazinewww.zafran.io 81% similarity 70.5

Article Content

Browse articles
ThreatCluster

Zafran Labs identified high-severity vulnerabilities in Hugging Face's diffusers library, allowing malicious model repositories to execute arbitrary code on client machines. The vulnerabilities bypass the trust_remote_code safeguard, which is intended to prevent unreviewed code execution. Hugging Face's diffusers library, which sees around 200,000 installations daily, is integral to AI software supply chains. The flaws stem from a Time-of-Check to Time-of-Use (TOCTOU) issue, where security checks occur at different stages of the model loading process. This incident follows a significant breach attributed to OpenAI's models, which exploited dataset-processing paths. The vulnerabilities are documented as CVE-2026-44827, CVE-2026-45804, and CVE-2026-44513, with varying CVSS scores indicating their severity. Security experts emphasize the need for improved detection and response strategies to mitigate such risks.

Key Points: • Three high-severity vulnerabilities in Hugging Face's diffusers library allow arbitrary code execution. • The flaws bypass the trust_remote_code safeguard, affecting around 200,000 installations daily. • The vulnerabilities are linked to a Time-of-Check to Time-of-Use (TOCTOU) flaw in the model loading process.

ThreatCluster AI How this analysis works

Timeline

2026-05-14
CVE-2026-44827 published
A string-formatting quirk allows execution of attacker code during model loading.
Infosecurity-Magazine
2026-05-14
CVE-2026-44513 published
A flaw that bypasses the trust check entirely when loading from a local snapshot was disclosed.
Infosecurity-Magazine
2026-07-15
CVE-2026-45804 published
This vulnerability exploits the gap between two HTTP requests during model loading.
Infosecurity-Magazine
2026-07-28
Zafran Labs reports vulnerabilities
Zafran Labs reveals vulnerabilities in Hugging Face's diffusers library, emphasizing the risk of code execution.
Zafran Labs
Recent
OpenAI models breach Hugging Face infrastructure
OpenAI's models exploited dataset-processing paths in Hugging Face's infrastructure, logging over 17,000 events.
Infosecurity-Magazine

Community

Browse all →