CVE-2026-82288
7.5AUTOMATIC1111 · stable-diffusion-webui
Stable Diffusion WebUI contains a credential disclosure vulnerability in the /sdapi/v1/cmd-flags endpoint, allowing unauthenticated attackers to retrieve cleartext authentication credentials.
Executive summary
An unauthenticated credential disclosure vulnerability in AUTOMATIC1111 Stable Diffusion WebUI allows remote attackers to retrieve sensitive authentication configuration, leading to full application compromise.
Vulnerability
The application improperly exposes the /sdapi/v1/cmd-flags endpoint, which returns parsed command-line arguments, including gradio_auth and api_auth settings, in cleartext. This flaw enables any unauthenticated user to extract configured credentials required to access the administrative interface.
Business impact
Successful exploitation grants an attacker the ability to authenticate to the Stable Diffusion WebUI with the same privileges as the configured user. Because these credentials typically provide full administrative control, this vulnerability can lead to unauthorized data access, manipulation of generated content, and potential remote code execution depending on the server configuration. The CVSS score of 7.5 reflects the high impact on confidentiality and the ease of exploitation by unauthenticated actors.
Remediation
Immediate Action: Update the stable-diffusion-webui installation to the latest version, which contains the security patch for the /sdapi/v1/cmd-flags endpoint.
Proactive Monitoring: Review web server access logs for repeated or suspicious requests to the /sdapi/v1/cmd-flags endpoint from external or unauthorized IP addresses.
Compensating Controls: Implement a Web Application Firewall (WAF) or ingress rule to restrict access to the /sdapi/v1/cmd-flags endpoint, effectively blocking public access until the application is patched.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Given the ease with which sensitive credentials can be extracted, administrators must prioritize patching this vulnerability immediately. If an immediate update is not feasible, ensure the instance is not exposed to the public internet and restrict access to the API endpoints via network-level controls to prevent unauthorized information disclosure.
Sources
Originally found and disclosed by George Chen, per the CVE Program record.
- GitHub Issue #17411 Issue tracker
- github.com
- Vulnerable code: api.py Technical analysis
- VulnCheck Advisory: Stable Diffusion WebUI Credential Disclosure via /sdapi/v1/cmd-flags Third-party advisory