Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify network-exposed Stable Diffusion WebUI instance
-
DeliveryConfirm Infinite Image Browsing extension is active
-
ExploitIdentify an allowed directory prefix from API behavior or docs
-
InstallCraft HTTP request targeting a sibling path sharing that prefix
-
C2Bypass is_path_trusted prefix-only comparison
-
ExecuteFileResponse returns restricted file contents
-
ImpactExfiltrate sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the Infinite Image Browsing access control mechanism be active, which occurs under exactly two conditions: (1) the environment variable IIB_ACCESS_CONTROL is explicitly set to enable, or (2) the host Stable Diffusion WebUI process was started with any of the network-exposure flags --share, --ngrok, --listen, or --server_name, which automatically enables access control via get_enable_access_control. In standalone local deployments where none of these flags or environment variables are set, access control is inactive and all readable files are already served without restriction - this flaw adds no additional exposure in that scenario. A further prerequisite is that a sibling path exists on the server whose name begins with an allowed directory prefix (e.g., /data/images_private alongside allowed /data/images); if no such path exists, the bypass has no practical effect. No authentication is required per the CVSS 4.0 vector (PR:N), and no special user interaction is needed. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H) accurately reflects the severity within the subset of deployments where access control is active - namely, network-exposed instances where the flaw's confinement bypass is the only barrier between an attacker and sensitive files. Real-world risk is highly deployment-dependent: in fully local, non-networked instances without IIB_ACCESS_CONTROL=enable, access control is never invoked and the extension already serves all readable files, so this flaw adds no marginal exposure in those cases. EPSS data was not provided in the available intelligence, leaving exploitation probability unquantified beyond the absence of a KEV listing. The bypass technique requires no specialized tooling - it is directly reconstructible from the public GitHub patch diff - which elevates practical exploitability above what the absence of a standalone POC might suggest. No active exploitation has been confirmed by CISA KEV. The net assessment is that this warrants prompt patching for any deployment running with network-exposure flags, where the affected deployments are precisely those depending on this path check for security. |
| Exploit ScenarioDerived | An attacker targeting a Stable Diffusion WebUI instance started with --share or --listen sends a crafted HTTP GET request to the Infinite Image Browsing file-serving API using a path such as /data/images_private/model_config.yaml, where /data/images is a configured allowed directory. Because is_path_trusted evaluates path.startswith('/data/images') without a trailing separator, the path passes validation and FileResponse returns the file. The bypass technique is directly derivable from the public patch diff at PR #969 with no additional tooling required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Path traversal in Infinite Image Browsing (zanllp/infinite-image-browsing), a Stable Diffusion WebUI extension, exposes arbitrary files outside configured allowed directories to unauthenticated remote attackers by exploiting a missing trailing path separator in the is_path_trusted prefix comparison. The bypass is only exploitable in network-exposed deployments - those started with --share, --ngrok, --listen, or --server_name flags, or with IIB_ACCESS_CONTROL=enable - which are precisely the configurations relying on this confinement for protection. No public exploit has been identified at time of analysis, but the bypass is trivially replicable from the public patch diff; an upstream fix is confirmed at commit 4057a624.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Update the extension to a revision at or after commit 4057a624c7a23a36f0b4dc6a545b40767d602450 from https://github.com/zanllp/infinite-image-browsing/pull/969 - operators should verify whether a tagged release incorporating this commit has been published before relying on a version number alone. As a compensating control where patching is not immediately possible, operators can restrict file system access at the OS level by running the WebUI process under a dedicated low-privilege account with read permissions limited to only the intended image directories; this provides confinement independent of the application-layer check. If network-exposure flags (--share, --ngrok, --listen, --server_name) are not operationally required, removing them disables the access control mode entirely, eliminating this attack surface - though it also removes remote WebUI access. Setting IIB_ACCESS_CONTROL=disable has the same effect on the access control check but leaves the deployment without any path confinement. Consult the VulnCheck advisory for additional guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Infinite Image Browsing is a browser-based image management extension for Stable Diffusion WebUI, identified by CPE cpe:2.3:a:zanllp:infinite-image-browsing:*:*:*:*:*:*:*:*. The vulnerable function is_path_trusted in scripts/iib/api.py (lines 329-344) evaluates whether a requested path falls within an allowed parent directory using Python's str.startswith(parent_path). Because no trailing os.sep is appended, a sibling directory whose name begins with the allowed prefix - e.g., /data/images_private passes the check for allowed path /data/images - satisfies the comparison and causes FileResponse to serve the file. This is a CWE-22 (Path Traversal) root cause in the form of a prefix-check bypass, distinct from classical ../ traversal. The companion fix in PR #969 also replaces os.path.normpath with os.path.realpath for path normalization, closing a potential symlink-based bypass vector. Access control activation logic lives in get_enable_access_control in scripts/iib/tool.py and is conditional on deployment mode.
Know when Infinite Image Browsing gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-accessible in exposed deployments, no authentication required (PR:N) per CVSS 4.0 input; high confidentiality from arbitrary file read; no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Infinite Image Browsing, a popular Stable Diffusion WebUI extension, contains a path traversal vulnerability (CVSS 8.7) that exposes sensitive files and credentials to unauthenticated remote attackers in network-exposed configurations. No public exploit has been identified at time of analysis, but the flaw is trivially replicable from the public patch. Immediate patching is required for any organization using this extension with network sharing enabled.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-63992
GHSA-6p87-gwpg-qp8w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB