Bug 2567438 (CVE-2026-70660) - CVE-2026-70660 stable-diffusion.cpp: stable-diffusion.cpp: Information disclosure via crafted safetensors model file
Summary: CVE-2026-70660 stable-diffusion.cpp: stable-diffusion.cpp: Information disclo...
Keywords:
Status: NEW
Alias: CVE-2026-70660
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-05 21:57 UTC by OSIDB Bzimport
Modified: 2026-11-06 20:35 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-05 21:57:48 UTC
stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. Prior to master-764-e22272e, the safetensors loader in src/model_io/safetensors_io.cpp trusts each tensor's data_offsets after checking only that nbytes equals end - begin. A crafted .safetensors file can declare a byte range beyond the file's data section, causing src/model_loader.cpp to consume an attacker-chosen length from an unchecked mapped-file offset. Loading the model can read adjacent process memory into tensor buffers or crash the process. This issue is fixed in master-764-e22272e.


Note You need to log in before you can comment on or make changes to this bug.