8.7high
Infinite Image Browsing is_path_trusted Prefix Comparison Omits the Trailing Path Separator
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.50% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zanllp infinite-image-browsing | up to 1.8.0 | CVE List |
All scores
| VulnCheck | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-77814 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-77814 changed 2026-10-15 | Public domain |