Untriaged
Permalink
CVE-2026-45804
7.5 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Privileges Required (PR): None (N)
- User Interaction (UI): Required (R)
- Scope (S): Unchanged (U)
- Confidentiality (C): High (H)
- Integrity (I): High (H)
- Availability (A): High (H)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Required (R)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): High (H)
Activity log
- Created suggestion
Diffusers: TOCTOU Trust Remote Code Bypass
Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, Diffusers' DiffusionPipeline.from_pretrained flow can bypass the trust_remote_code guard because download() validates model_index.json and custom pipeline code before later loading from a cached folder that can change, allowing a Hub repository with custom .py pipeline code to execute through the custom pipeline flow without passing custom_pipeline or trust_remote_code=True. This issue is fixed in version 0.38.0.
References
-
https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p exploitx_refsource_CONFIRM
-
-
https://github.com/huggingface/diffusers/pull/13448 x_refsource_MISC
-
https://github.com/huggingface/diffusers/releases/tag/v0.38.0 x_refsource_MISC
Affected products
diffusers
- ==< 0.38.0
Matching in nixpkgs
pkgs.python313Packages.diffusers
State-of-the-art diffusion models for image and audio generation in PyTorch
pkgs.python314Packages.diffusers
State-of-the-art diffusion models for image and audio generation in PyTorch
Package maintainers
-
@natsukium Tomoya Otabi <nixpkgs@natsukium.com>