kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-70660 stable-diffusion.cpp: Out-of-bounds read in safetensors loader: unvalidated data_offsets allow a tensor's byte range to extend past the end of the file

설명

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.

영향 받는 제품 제품 1개

  • leejet

    stable-diffusion.cpp

    해결 버전 있음

    영향 받는 버전

    • master-764-e22272e 미만

    해결 버전

    • master-764-e22272e 이상

참고 자료 4건

‹ 목록

점검 지원 범위 문의

도입 문의