{"id":"CVE-2026-77814","aliases":["CVE-2026-77814"],"related":[],"kind":"vulnerability","state":"published","title":"Infinite Image Browsing is_path_trusted Prefix Comparison Omits the Trailing Path Separator","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-21T15:03:08.589Z","modified":"2026-11-08T14:09:01.731Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.8.0","status":"affected"}],"vendor":"zanllp","product":"infinite-image-browsing","repo":"https://github.com/zanllp/infinite-image-browsing","source":"cvelist"}],"references":[{"url":"https://github.com/zanllp/infinite-image-browsing/issues/968","tags":["exploit","issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/zanllp/infinite-image-browsing/pull/969","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/zanllp/infinite-image-browsing/commit/4057a624c7a23a36f0b4dc6a545b40767d602450","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/zanllp/infinite-image-browsing/blob/v1.8.0/scripts/iib/api.py#L329-L344","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/zanllp/infinite-image-browsing","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/infinite-image-browsing-is-path-trusted-prefix-comparison-omits-the-trailing-path-separator","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["AAtomical"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-21T17:33:19.983Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77814","url":"https://www.cve.org/CVERecord?id=CVE-2026-77814","licence":"CVE Terms of Use","modified":"2026-11-08T14:09:01.731Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77814","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77814","licence":"Public domain","modified":"2026-10-15T19:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:34.794Z","epss":{"score":0.00504,"percentile":0.44678,"date":"2026-12-01T12:00:22.000Z"}}