Time-of-check Time-of-use (TOCTOU) Affecting py3-diffusers-cuda-12.9 package, versions <0.38.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Social Trends
EPSS
0.38% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-PY3DIFFUSERSCUDA129-17723822
  • published30 Jun 2026
  • disclosed15 Jul 2026

Introduced: 30 Jun 2026

CVE-2026-45804  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade Chainguard py3-diffusers-cuda-12.9 to version 0.38.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-diffusers-cuda-12.9 package and not the py3-diffusers-cuda-12.9 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.