Skip to content
Threat Feed
high advisory

Path Traversal in Stable Diffusion WebUI

CVE-2026-77814 is a path traversal vulnerability in Stable Diffusion WebUI caused by improper prefix validation in the is_path_trusted function, enabling unauthorized file access in network-exposed deployments.

CVE search metadata

CVE search record: CVE-2026-77814. Severity: high. CVSS: 7.5. KEV: no. Product: Stable Diffusion WebUI. Brief: Path Traversal in Stable Diffusion WebUI. Brief link: https://feed.craftedsignal.io/briefs/2026-08-path-traversal-sd-webui-afbdff6f/

Triage facts

Revision 2
Applicability
Stable Diffusion WebUI
Evidence
Unknown
Severity
High
Action
Elevated
Sources
1 public source
Freshness
Revision 2Aug 21, 15:25 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
A1Likely
Revision history 1 entry · Revision 2
  1. Revision 2

    Repaired a legacy canonical identity collision

    Changed: slug

CVE-2026-77814 is a path traversal vulnerability residing in the scripts/iib/api.py file of the Stable Diffusion WebUI. The vulnerability stems from an insecure implementation of the is_path_trusted function, which performs a prefix check using path.startswith(parent_path) without appending a path separator. Consequently, if /data/images is the intended authorized directory, an attacker can bypass this restriction by requesting a path that starts with the same string, such as /data/images_private/secret.txt.

The security control is governed by get_enable_access_control in scripts/iib/tool.py. It is active when IIB_ACCESS_CONTROL is set to 'enable', or when the WebUI is exposed via --share, --ngrok, --listen, or --server_name flags. Deployments using these network-exposure options are vulnerable to unauthorized file disclosure. This flaw is critical for defenders because it allows attackers to bypass intended file system confinement to retrieve sensitive configuration or system files.

Impact

Successful exploitation allows unauthenticated remote attackers to perform path traversal and access files outside of the intended web root. This leads to the disclosure of sensitive data, such as system configuration files or other private assets reachable by the user account running the WebUI service. The risk is elevated in shared or network-exposed environments where the WebUI is intentionally configured to listen on external interfaces.

Recommendation

  • Upgrade Stable Diffusion WebUI to a version that applies the fix, which uses os.sep to enforce directory boundaries during path validation.
  • Until patched, restrict network access to the WebUI interface using a firewall or VPN to prevent exploitation of the path traversal logic in network-exposed deployments.
  • Audit logs for HTTP requests containing directory traversal sequences or attempts to access directories that share a common prefix with authorized storage paths.
  • Disable IIB_ACCESS_CONTROL if the functionality is not required or if the risk cannot be mitigated through network isolation.

Immediate actions

Review exposed WebUI deployments and apply vendor patches for CVE-2026-77814.

IT Operations 48h

Deploy Sigma rule to webserver logs to monitor for path traversal attempts.

Detection Engineering 24h

Threat Hunt

Search web logs for successful HTTP 200 responses to paths containing '_private' subdirectories.

T1190 high high confidence hunt now

Data: webserver access logs

Mitigations

Restrict external network access to the WebUI via firewall rules.

immediate IT Operations

CVE-2026-77814

Detection coverage 1

Detects CVE-2026-77814 Exploitation - Path Traversal Attempt

high

Detects potential path traversal attempts targeting Stable Diffusion WebUI by looking for directory traversal sequences or suspicious path suffixes in HTTP requests.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →