Skip to content
HighVulnerability

CVE-2026-44827: Diffusers remote code execution when loading Hugging Face Hub pipelines

Identifier
CVE-2026-44827
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

Diffusers versions before 0.38.0, including 0.37.0, execute remote code when pipelines load from Hugging Face Hub repositories without the trust_remote_code=True safeguard. The _resolve_custom_pipeline_and_cls function in pipeline_loading_utils.py formats an unset custom_pipeline as the literal filename "None.py", so a repository containing that file runs silently during a standard DiffusionPipeline.from_pretrained() call. An attacker needs only to publish such a repository and have a victim load it.

Mitigation

Fixed in 0.38.0.