HighVulnerability
CVE-2026-77814: Stable Diffusion WebUI IIB path check bypass via shared directory name prefix
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-77814
- Published
- Record updated
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.
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online