CVE-2026-47748: leejet stable-diffusion.cpp out-of-bounds read in pickle parser

CVE-2026-47748 · Severity: medium · CVSS 5.5 · Published 2026-06-16

stable-diffusion.cpp is a software library used to run artificial intelligence image generation models. A security flaw allows a specially crafted or corrupted model file to crash the application when it is loaded. This could be used by an attacker to disrupt services or cause applications to fail if they process untrusted model files downloaded from the internet.

Technologies: Leejet Stable-Diffusion.Cpp. Vendors: Leejet.

Quick answers

Is CVE-2026-47748 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-47748 being exploited in the wild.
How severe is CVE-2026-47748?
Medium severity, with a CVSS score of 5.5, published 16 June 2026.
Which products and versions are affected?
Leejet Stable-Diffusion.Cpp < master-584-0a7ae07.
Is there a fix for CVE-2026-47748?
A patch was published on 2026-04-19: Fix committed to repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-47748 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-47748?
Check whether you run Leejet Stable-Diffusion.Cpp at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

An out-of-bounds read vulnerability exists in the pickle .ckpt parser within src/model.cpp of stable-diffusion.cpp. The root cause is a failure to validate buffer boundaries; opcode handlers increment the parser position (e.g., buffer += N) without verifying that the new position remains within the allocated metadata buffer. An attacker can exploit this by providing a truncated or malformed PyTorch checkpoint file, leading to a denial-of-service (crash) via an out-of-bounds read. This issue is triggered when an application attempts to load a malicious model file. The vulnerability has been addressed in version master-584-0a7ae07 by implementing restricted checkpoint loading.

Affected products

  • leejet stable-diffusion.cpp < master-584-0a7ae07

Timeline

  • 2026-04-19: patched: Fix committed to repository
  • 2026-05-22: advisory: GitHub Security Advisory published
  • 2026-06-16: disclosed: CVE published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.