CVE-2026-47750
Full vulnerability record from the local CVENow database.
Description
stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. In versions prior to master-584-0a7ae07, the pickle .ckpt parser in src/model.cpp contained a heap buffer overflow vulnerability in the GLOBAL opcode handler. The issue was caused by missing validation when searching for newline-delimited fields. A crafted .ckpt file without the expected newline could cause the parser to use -1 as a copy length, resulting in immediate heap corruption. 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. The issue has been resolved in version master-584-0a7ae07. If developers are unable to immediately update their applications they can work around this issue by following these instructions: do not load .ckpt checkpoint files from untrusted sources, and prefer trusted model sources and safer formats such as .safetensors where possible.
View original CVE JSON
{
"id": "CVE-2026-47750",
"sourceIdentifier": "[email protected]",
"published": "2026-06-16T20:16:44.413",
"lastModified": "2026-10-25T23:10:00.167",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. In versions prior to master-584-0a7ae07, the pickle .ckpt parser in src/model.cpp contained a heap buffer overflow vulnerability in the GLOBAL opcode handler. The issue was caused by missing validation when searching for newline-delimited fields. A crafted .ckpt file without the expected newline could cause the parser to use -1 as a copy length, resulting in immediate heap corruption. 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. The issue has been resolved in version master-584-0a7ae07. If developers are unable to immediately update their applications they can work around this issue by following these instructions: do not load .ckpt checkpoint files from untrusted sources, and prefer trusted model sources and safer formats such as .safetensors where possible."
},
{
"lang": "es",
"value": "stable-diffusion.cpp es una biblioteca pura de C/C++ para ejecutar inferencia de modelos de difusión (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image y más). En versiones anteriores a master-584-0a7ae07, el analizador pickle .ckpt en src/model.cpp contenía una vulnerabilidad de desbordamiento de búfer de pila en el gestor del código de operación GLOBAL. El problema fue causado por la falta de validación al buscar campos delimitados por nueva línea. Un archivo .ckpt manipulado sin la nueva línea esperada podría hacer que el analizador usara -1 como longitud de copia, lo que resultaría en una corrupción inmediata de la pila. El ataque requiere que la víctima o la aplicación cargue un archivo .ckpt de una fuente no confiable, como un modelo descargado de un sitio de intercambio de modelos. El problema ha sido resuelto en la versión master-584-0a7ae07. Si los desarrolladores no pueden actualizar inmediatamente sus aplicaciones, pueden solucionar este problema siguiendo estas instrucciones: no cargar archivos de punto de control .ckpt de fuentes no confiables, y preferir fuentes de modelos confiables y formatos más seguros como .safetensors cuando sea posible."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "leejet",
"product": "stable-diffusion.cpp",
"versions": [
{
"version": "< master-584-0a7ae07",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-06-17T13:55:19.988917Z",
"id": "CVE-2026-47750",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-787"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:leejet:stable-diffusion.cpp:*:*:*:*:*:c\\+\\+:*:*",
"versionEndExcluding": "master-584-0a7ae07",
"matchCriteriaId": "EF9A4C1B-8396-48E6-8E46-3A3767DA17FC"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/leejet/stable-diffusion.cpp/commit/0a7ae07f948eff4611968a65a22bd7c7031ad74f",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/leejet/stable-diffusion.cpp/pull/1443",
"source": "[email protected]",
"tags": [
"Issue Tracking",
"Patch"
]
},
{
"url": "https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v37x-jwp7-mcvc",
"source": "[email protected]",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
]
},
{
"url": "https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v37x-jwp7-mcvc",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
]
}
]
}