Impact
The is_path_trusted helper in Infinite Image Browsing compares the requested file path against an allowed base directory using a startswith check that omits the trailing path separator. A path such as /data/images_private/secret.txt starts with /data/images and therefore is considered trusted, causing the application to serve files outside the intended image directory. This flaw allows an attacker to read any file that the web process can access, exposing confidential or proprietary data.
Affected Systems
The vulnerability affects the zanllp infinite-image-browsing plugin, packaged as the SD‑WebUI Infinite Image Browsing component. The CVE payload does not specify any affected release range, so the scope is limited to deployments of the plugin when version information is unavailable.
Risk and Exploitability
The CVSS score of 8.7 indicates high severity. EPSS data is not available and the issue is not listed in the CISA KEV catalog, but the flaw is active when access control is enabled in network‑exposed Stable Diffusion WebUI deployments. A network‑demonstrable exploit can be triggered via the web interface, allowing an attacker to read arbitrary files beyond the configured directories. The weakness is a directory traversal (CWE‑22) that permits reading files outside the intended confinement.
OpenCVE Enrichment