CVE-2026-56671
Full vulnerability record from the local CVENow database.
Description
ComfyUI is a modular diffusion model GUI, api and backend with a graph/nodes interface. Prior to 0.28.0, get_model_preview in app/model_manager.py joins an unrestricted filename route capture to a selected model directory without a containment check, allowing an unauthenticated remote attacker to use traversal, encoded traversal, absolute paths, or an unbounded path_index to read image-decodable files and enumerate host paths. get_model_preview (app/model_manager.py) built the path with os.path.join(folder, filename) where filename is an unrestricted {filename:.*} route capture. Literal ../, percent-encoded %2e%2e%2f, and absolute paths all escaped the model directory; path_index was also unbounded. The target file is piped through Pillow and re-encoded as WEBP, so disclosure is limited to image-decodable files plus a file-existence/enumeration oracle (and internal-path leakage via path_index errors). This issue is fixed in version 0.28.0.
View original CVE JSON
{
"id": "CVE-2026-56671",
"sourceIdentifier": "[email protected]",
"published": "2026-07-31T06:16:29.860",
"lastModified": "2026-10-23T23:10:00.157",
"vulnStatus": "Awaiting Analysis",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "ComfyUI is a modular diffusion model GUI, api and backend with a graph/nodes interface. Prior to 0.28.0, get_model_preview in app/model_manager.py joins an unrestricted filename route capture to a selected model directory without a containment check, allowing an unauthenticated remote attacker to use traversal, encoded traversal, absolute paths, or an unbounded path_index to read image-decodable files and enumerate host paths. get_model_preview (app/model_manager.py) built the path with os.path.join(folder, filename) where filename is an unrestricted {filename:.*} route capture. Literal ../, percent-encoded %2e%2e%2f, and absolute paths all escaped the model directory; path_index was also unbounded. The target file is piped through Pillow and re-encoded as WEBP, so disclosure is limited to image-decodable files plus a file-existence/enumeration oracle (and internal-path leakage via path_index errors). This issue is fixed in version 0.28.0."
},
{
"lang": "es",
"value": "ComfyUI es una GUI modular de modelo de difusión, API y backend con una interfaz de grafo/nodos. Antes de la versión 0.28.0, get_model_preview en app/model_manager.py une una captura de ruta de nombre de archivo sin restricciones a un directorio de modelo seleccionado sin una verificación de contención, permitiendo a un atacante remoto no autenticado usar recorrido, recorrido codificado, rutas absolutas o un path_index ilimitado para leer archivos decodificables como imagen y enumerar rutas de host. get_model_preview (app/model_manager.py) construyó la ruta con os.path.join(folder, filename) donde filename es una captura de ruta {filename:.*} sin restricciones. .. / literal, %2e%2e%2f codificado en porcentaje y rutas absolutas escaparon del directorio del modelo; path_index también era ilimitado. El archivo objetivo se canaliza a través de Pillow y se recodifica como WEBP, por lo que la divulgación se limita a archivos decodificables como imagen más un oráculo de existencia/enumeración de archivos (y fuga de rutas internas a través de errores de path_index). Este problema está solucionado en la versión 0.28.0."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Comfy-Org",
"product": "ComfyUI",
"versions": [
{
"version": "< 0.28.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-31T23:18:53.402759Z",
"id": "CVE-2026-56671",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-22"
}
]
}
],
"references": [
{
"url": "https://github.com/Comfy-Org/ComfyUI/pull/14734",
"source": "[email protected]"
},
{
"url": "https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0",
"source": "[email protected]"
},
{
"url": "https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-pj59-g5vv-74q4",
"source": "[email protected]"
}
]
}