Out-of-bounds Read Affecting leejet/stable-diffusion.cpp package, versions [,master-584-0a7ae07)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-LEEJETSTABLEDIFFUSIONCPP-17660919
  • published28 Jun 2026
  • disclosed16 Jun 2026
  • creditUnknown

Introduced: 16 Jun 2026

CVE-2026-47748  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade leejet/stable-diffusion.cpp to version master-584-0a7ae07 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the pickle parser process. An attacker can cause the application to crash or behave unexpectedly by supplying a crafted or truncated .ckpt file that triggers reads past the end of the metadata buffer. This is only exploitable if the application loads .ckpt files from untrusted sources.

Workaround

This vulnerability can be mitigated by ensuring that only trusted .ckpt checkpoint files are loaded and by preferring safer formats such as .safetensors.

CVSS Base Scores

version 4.0
version 3.1