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-25
Advisory published
2026-06-16
Advisory updated
2026-06-25

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]

Sources and references

Verified primary and authoritative sources

  • CVE-2026-47748 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-47748

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-47748 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-47748

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.