Skip to content
MediumVulnerability

CVE-2026-47748: stable-diffusion.cpp out-of-bounds reads in PyTorch checkpoint pickle parsing

Identifier
CVE-2026-47748
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

CVE-2026-47748 affects stable-diffusion.cpp releases before master-584-0a7ae07, a C/C++ library for diffusion model inference. The pickle .ckpt parser in src/model.cpp advances its buffer without checking remaining input, so a crafted or truncated checkpoint can trigger out-of-bounds reads. Exploitation requires an application or user to load a .ckpt file from an untrusted source, such as a model sharing site.

Mitigation

Fixed in master-584-0a7ae07. If immediate updating is not possible, do not load .ckpt checkpoint files from untrusted sources, prefer trusted model sources, and use .safetensors where possible.