HighVulnerability
CVE-2026-47747: stable-diffusion.cpp heap buffer overflow in pickle .ckpt parser
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-47747
- Published
- Record updated
- Fixed in
- The source references a patch, a mitigation or a vendor advisory.
Summary
CVE-2026-47747 affects stable-diffusion.cpp, a pure C/C++ library for diffusion model inference, in versions before master-584-0a7ae07. A heap buffer overflow in the BINUNICODE opcode handler of the pickle .ckpt parser in src/model.cpp results from sign confusion on the opcode length field. A crafted .ckpt file can trigger memcpy with a very large length derived from a negative signed value, causing immediate heap corruption.
Mitigation
Fixed in master-584-0a7ae07. If immediate updating is not possible, only load .ckpt checkpoint files from trusted sources, prefer trusted model sources, and use safer formats such as .safetensors where possible.
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