PT-2026-79392 · Unknown · Stable-Diffusion-Webui
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Stable Diffusion WebUI (affected versions not specified)
Description
The
is path trusted function in scripts/iib/api.py improperly validates requested paths by using path.startswith(parent path) without appending a path separator. This allows access to directories that start with the same name as an allowed parent directory, such as accessing /data/images private/secret.txt when only /data/images is permitted. This flaw leads to unauthorized file disclosure via FileResponse. The issue affects network-exposed deployments where access control is enabled via IIB ACCESS CONTROL or when the host is started with share, ngrok, listen, or server name options. The get enable access control function in scripts/iib/tool.py determines if this confinement check is active.Recommendations
Update the
is path trusted function to compare the requested path against the parent path joined with os.sep to ensure proper directory confinement.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Stable-Diffusion-Webui