PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-47748 leejet CVE debrief

CVE-2026-47748 is a MEDIUM severity vulnerability in stable-diffusion.cpp, a pure C/C++ library for running diffusion model inference. Versions prior to master-584-0a7ae07 are vulnerable to an out-of-bounds reads error through PyTorch checkpoint pickle opcode parsing. The pickle .ckpt parser in src/model.cpp did not consistently check that enough input remained before reading opcode arguments or advancing the parser buffer with a crafted or truncated .ckpt file. Throughout the pickle parser, opcode handlers advanced the parser position with expressions such as buffer += N without first checking that buffer + N <= buffer_end. A truncated file could therefore cause reads past the end of the metadata buffer. LibFuzzer found crashes in under one second using malformed checkpoint inputs. Any application using affected stable-diffusion.cpp releases to load untrusted .ckpt model files could be vulnerable. The attack requires the victim or application to load a .ckpt file from an untrusted source, such as a downloaded model from a model sharing site. This issue has been fixed in version master-584-0a7ae07.

Vendor
leejet
Product
stable-diffusion.cpp
CVSS
MEDIUM 5.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-16
Original CVE updated
2026-06-16
Advisory published
2026-06-16
Advisory updated
2026-06-16

Who should care

Developers and users of stable-diffusion.cpp, especially those loading .ckpt model files from untrusted sources.

Technical summary

The vulnerability is caused by an out-of-bounds reads error in the pickle .ckpt parser. This can be exploited by loading a crafted or truncated .ckpt file, which can cause reads past the end of the metadata buffer.

Defensive priority

MEDIUM

Recommended defensive actions

  • Update to version master-584-0a7ae07 or later.
  • Ensure .ckpt checkpoint files are not loaded from untrusted sources.
  • Prefer trusted model sources and safer formats such as .safetensors where possible.

Evidence notes

The CVE-2026-47748 vulnerability has been publicly disclosed and a fix is available. [ref-4] [ref-5]

Official resources

CVE-2026-47748 was published on 2026-06-16T19:16:55.720Z and modified on 2026-06-16T20:44:11.730Z.