Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
3166 articles · 183281 vulns · 37/41 feeds (7d)
← Back to list
8.8
CVE-2026-44513EXPLOITEDPATCHED
huggingface · diffusers

Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components

Description

Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, a trust_remote_code bypass in DiffusionPipeline.from_pretrained allows arbitrary remote code execution despite the user passing trust_remote_code=False (or omitting it, which is the default). The vulnerability has three variants, all sharing the same root cause — the trust_remote_code gate was implemented inside DiffusionPipeline.download() rather than at the actual dynamic-module load site, so any code path that bypassed or short-circuited download() also bypassed the security check. DiffusionPipeline.from_pretrained('repoA', custom_pipeline='attacker/repoB', trust_remote_code=False) — the gate evaluated against repoA's file list rather than repoB's, so repoB's pipeline.py was loaded and executed. DiffusionPipeline.from_pretrained('/local/snapshot', custom_pipeline='attacker/repoB', trust_remote_code=False) — the local-path branch never invoked download(), so the gate was never reached and remote code from repoB executed. DiffusionPipeline.from_pretrained('/local/snapshot', trust_remote_code=False) where the snapshot contains custom component files (e.g. unet/my_unet_model.py) referenced from model_index.json — same root cause; the local path skipped download() and custom component code executed. This vulnerability is fixed in 0.38.0.

Affected Products

VendorProductVersions
huggingfacediffusers< 0.38.0

References

  • https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v(x_refsource_CONFIRM)

Related News (3 articles)

Tier D
The Hacker News2h ago
Hugging Face Diffusers Flaws Could Let Model Repositories Execute Arbitrary Code
→ No new info (linked only)
Tier D
Infosecurity Magazine5d ago
Bugs in Hugging Face Diffusers Bypass Custom Code Safeguard
→ No new info (linked only)
Tier C
VulDB80d ago
CVE-2026-44513 | huggingface diffusers up to 0.37.x DiffusionPipeline.download code injection (GHSA-98h9-4798-4q5v)
→ No new info (linked only)
CVSS 3.18.8 HIGH
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CISA KEV❌ No
Actively exploited✅ Yes
Patch available
diffusers@0.38.0
CWECWE-94
PublishedMay 7, 2026
Last enriched80d agov2
Tags
GHSA-98h9-4798-4q5vpip
Trending Score67
Source articles3
Independent3
Info Completeness9/14
Missing: epss, kev, exploit, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

HIGHCVE-2026-9856
Path Traversal in huggingface/transformers
Trending: 25
NONECVE-2026-66007
Datasets Path Traversal via Unsanitized file_name Metadata
Trending: 8
NONECVE-2026-65920
Diffusers Path Traversal via weight_map Arbitrary File Read
Trending: 7
NONECVE-2026-65010
Datasets Symlink-following Arbitrary File Write via Extractor.extract()
Trending: 7
NONECVE-2026-63086
text-generation-inference 3.3.7 SSRF via fetch_image in multimodal chat completions
Trending: 5

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
May 7, 2026
Discovered by ZDM
May 7, 2026
Updated: description, severity, activelyExploited
May 14, 2026
Actively Exploited
Jul 22, 2026
Patch Available
Jul 22, 2026

Version History

v2
Last enriched 80d ago
v2Tier C80d ago

Updated severity to CRITICAL, changed exploit availability to false, and provided a new description with additional details.

descriptionseverityactivelyExploited
via VulDB
v188d ago

Initial creation