Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify network-exposed IIB instance (ngrok/share mode)
-
DeliveryObtain write access to scanned image directory
-
ExploitCreate symlink inside directory targeting /etc/passwd
-
InstallSend HTTP file-browse request for symlink path
-
C2normpath-based prefix check passes containment test
-
ExecuteFileResponse follows symlink to target
-
ImpactSensitive file contents disclosed over HTTP
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires two concurrent conditions to be met simultaneously. First, the Stable Diffusion WebUI must be started with at least one of the share, ngrok, listen, or server_name options - or IIB_ACCESS_CONTROL must be explicitly set to enable - so that path-based access control is active and the instance is reachable over a network. Second, the attacker must be able to create a symbolic link inside one of the configured scanned image directories; this requires local filesystem write access to those directories or an upload mechanism within the application that preserves or creates symlinks. Exploitation is explicitly limited to this symlink-planting prerequisite: an attacker with only HTTP access but no ability to write to the image directories cannot trigger the disclosure. Standalone local deployments started without networking flags have access control disabled entirely, making the confinement bypass moot - those instances are not remotely accessible regardless. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H) reflects fully unauthenticated network exploitation with high confidentiality impact, which is consistent with a file-disclosure primitive on an exposed HTTP service. However, two factors significantly modulate real-world risk: first, the vulnerability is only reachable when the SD WebUI is started with network-sharing flags (share, ngrok, listen, server_name) or when IIB_ACCESS_CONTROL=enable is explicitly set - standalone local-only instances never engage the broken access control at all; second, exploitation requires pre-planting a symbolic link inside a scanned image directory, which demands local filesystem write access or an upload primitive capable of creating symlinks. The AT:N and PR:N ratings in the provided CVSS 4.0 vector do not account for the symlink-planting prerequisite, which overstates network exploitability - this discrepancy should be verified with the vendor. No EPSS data was provided and no CISA KEV listing or POC was identified, further supporting a moderate-to-high rather than critical immediate priority for most deployments. The primary real-world concern is shared or hosted SD WebUI instances where multiple users can write to image directories. |
| Exploit ScenarioDerived | An attacker with write access to a scanned image directory on a network-exposed Infinite Image Browsing instance - for example, a shared SD WebUI exposed via ngrok - creates a symbolic link named portrait.png inside the images directory pointing to /etc/shadow. When the attacker requests this file via the HTTP browse API, is_path_trusted confirms the normpath-collapsed path appears to reside within the trusted directory and FileResponse follows the symlink, returning the contents of the target system file. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Symlink escape in Infinite Image Browsing (zanllp/infinite-image-browsing) allows remote attackers to read arbitrary files from the host filesystem by placing a symbolic link inside a scanned image directory, which satisfies a string-based path containment check that does not resolve symlinks. The flaw is exploitable only in network-exposed Stable Diffusion WebUI deployments where access control is active - those started with share, ngrok, listen, or server_name options, or with IIB_ACCESS_CONTROL=enable. No public exploit or CISA KEV listing has been identified at time of analysis; an upstream fix is available as commit 4057a624 (PR #969), but no specifically tagged patched release has been confirmed.
RemediationAI
The upstream fix is available as commit 4057a624c7a23a36f0b4dc6a545b40767d602450 via pull request #969 (https://github.com/zanllp/infinite-image-browsing/pull/969). Users should update to a release incorporating this commit; because no specifically tagged patched release has been confirmed, monitoring the repository for a tagged release following this commit is advised. As a manual compensating control, operators can patch scripts/iib/tool.py to replace os.path.normpath with os.path.realpath in the to_abs_path function (line 172), and apply the same realpath substitution to the parent_path normalization in scripts/iib/api.py - noting that this requires familiarity with the codebase and will be overwritten on future extension updates. To eliminate the network attack surface entirely, avoid starting the SD WebUI with the share, ngrok, listen, or server_name options; this disables remote access and renders the bypass moot. Restricting filesystem write permissions on scanned image directories to trusted users eliminates the symlink-planting prerequisite as an independent control, with no known side effects on normal browsing functionality.
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 Stable Diffusion WebUI extension (CPE: cpe:2.3:a:zanllp:infinite-image-browsing:*:*:*:*:*:*:*:*) providing web-based browsing of SD output directories. The vulnerability is rooted in CWE-59 (Improper Link Resolution Before File Access - 'Link Following'): the to_abs_path function in scripts/iib/tool.py:172-175 normalizes requested paths with Python's os.path.normpath, which collapses dot segments but does not resolve symbolic links. The is_path_trusted function in scripts/iib/api.py:329-344 then performs a string prefix check to confirm the normalized path lies within a trusted scanned directory. Because normpath leaves symlink components intact, a symlink residing inside a scanned directory appears to satisfy the prefix check while its resolved target may reside anywhere on the filesystem. FastAPI's FileResponse subsequently follows the symlink when serving the file. The fix replaces normpath with os.path.realpath in both to_abs_path and the parent_path normalization inside is_path_trusted, and additionally hardens the prefix test to require a trailing path separator (path.startswith(parent_path + os.sep)) to prevent prefix-confusion attacks where a directory named images_evil could be confused with images.
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
AC:H reflects the symlink-planting prerequisite requiring filesystem write access; AV:N because the file-read exploit step occurs over HTTP with no required authentication.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
to_abs_path in scripts/iib/tool.py normalised the requested path with os.path.normpath, which collapses dot segments but does not resolve symbolic links. A symlink placed inside a scanned directory therefore satisfies the containment comparison performed by is_path_trusted in scripts/iib/api.py while pointing outside that directory, and FileResponse follows the link when serving the response, so a link created in an image directory and targeting a file such as /etc/passwd discloses that file. 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 resolves the path with os.path.realpath.
Executive ViewAI
Infinite Image Browsing, a plugin for Stable Diffusion WebUI, contains a symlink escape vulnerability allowing attackers to read arbitrary files from affected servers. Organizations running network-exposed deployments with this plugin and access control enabled face data breach risk from exposure of sensitive system files and AI model data. Affected systems require immediate identification and patching to prevent unauthorized file access.
Patch available in upstream commit 4057a624 (PR #969); tagged release confirmation pending from vendor. Interim mitigations: disable network exposure of affected Stable Diffusion instances, implement Web Application Firewall rules blocking directory traversal patterns in image requests, or restrict IIB_ACCESS_CONTROL to trusted administrator access only until patched release is deployed.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-63993
GHSA-cw66-pfp5-82xp
NVD
CVE.org
EPSS
Exploit-DB