CVE-2026-77814

is_path_trusted in scripts/iib/api.py compares the requested path against each allowed parent directory with path.startswith(parent_path), without appending a path separator. A directory whose name merely begins with an allowed path therefore satisfies the comparison, so where /data/images is allowed a request for /data/images_private/secret.txt is treated as trusted and served by FileResponse, disclosing files the confinement was meant to exclude. Whether the check applies depends on get_enable_access_control in scripts/iib/tool.py: it returns true when IIB_ACCESS_CONTROL is set to enable, false when set to disable, and otherwise true when the host Stable Diffusion WebUI was started with share, ngrok, listen or server_name, falling back to false. Confinement is therefore active in the network-exposed WebUI deployments that rely on it, while a standalone run with no such option serves every readable file regardless of this flaw. The fix compares against parent_path joined with os.sep.
Configurations

No configuration.

History

15 Oct 2026, 19:10

Type Values Removed Values Added
Summary
  • (es) is_path_trusted en scripts/iib/API.py compara la ruta solicitada contra cada directorio padre permitido con path.startswith(parent_path), sin añadir un separador de ruta. Un directorio cuyo nombre simplemente comienza con una ruta permitida, por lo tanto, satisface la comparación, así, donde /data/images está permitido, una solicitud para /data/images_private/secret.txt se trata como de confianza y es servida por FileResponse, revelando archivos que el confinamiento pretendía excluir. Si la verificación se aplica depende de get_enable_access_control en scripts/iib/tool.py: devuelve verdadero cuando IIB_ACCESS_CONTROL está configurado como enable, falso cuando está configurado como disable, y, de lo contrario, verdadero cuando el host Stable Diffusion WebUI se inició con share, ngrok, listen o server_name, volviendo a falso. El confinamiento está, por lo tanto, activo en las implementaciones de WebUI expuestas a la red que dependen de él, mientras que una ejecución independiente sin dicha opción sirve cada archivo legible independientemente de este fallo. La solución compara contra parent_path unido con os.sep.

Information

Published : 2026-08-21 15:16

Updated : 2026-10-15 19:10


NVD link : CVE-2026-77814

Mitre link : CVE-2026-77814

CVE.ORG link : CVE-2026-77814


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')