HighVulnerability
CVE-2026-70660: stable-diffusion.cpp safetensors loader out-of-bounds read via tensor offsets
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-70660
- Published
- Record updated
Summary
CVE-2026-70660 affects stable-diffusion.cpp, a pure C/C++ library for diffusion model inference, prior to master-764-e22272e. The safetensors loader in src/model_io/safetensors_io.cpp checks only that nbytes equals end minus begin before trusting each tensor's data_offsets. A crafted .safetensors file can declare a byte range beyond the data section, so src/model_loader.cpp reads an attacker-chosen length from an unchecked mapped-file offset. Loading such a model can leak adjacent process memory into tensor buffers or crash the process.
Mitigation
Fixed in master-764-e22272e.
Topics
Related items
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins
- HighCVE-2026-142134: AWS HealthOmics MCP Server uncontrolled search path in workflow linting toolsSimilar attack, NVD/CVE Database