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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th 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 Write vulnerabilities in an interactive lesson.

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

Introduced: 16 Jun 2026

CVE-2026-47750  (opens in a new tab)
CWE-787  (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 Write via the GLOBAL opcode handler in the checkpoint file parser due to missing validation when searching for newline-delimited fields. An attacker can achieve heap corruption and potentially execute arbitrary code or cause application crashes by tricking a victim or application into loading a crafted .ckpt file from an untrusted source.

Workaround

This vulnerability can be mitigated by avoiding the loading of .ckpt checkpoint files from untrusted sources and preferring trusted model sources or safer formats such as .safetensors.

CVSS Base Scores

version 4.0
version 3.1