Skip to content
HighVulnerability

CVE-2026-77814: Stable Diffusion WebUI IIB path check bypass via shared directory name prefix

Identifier
CVE-2026-77814
Published
Record updated
View JSON

Summary

CVE-2026-77814 affects is_path_trusted in scripts/iib/api.py, which checks requested paths against allowed parent directories using path.startswith(parent_path) without a path separator. A sibling directory whose name begins with an allowed path, such as /data/images_private/secret.txt when /data/images is allowed, passes the check and is served by FileResponse, disclosing files the confinement should exclude. The check is enabled by get_enable_access_control in scripts/iib/tool.py, which depends on IIB_ACCESS_CONTROL or on the WebUI being started with share, ngrok, listen or server_name, and is therefore active in network-exposed deployments.

Mitigation

The fix compares against parent_path joined with os.sep.