Home / AUTOMATIC1111 / stable-diffusion-webui / CVE-2024-31462
CVE-2024-31462: is it exploited, and which versions of AUTOMATIC1111 stable-diffusion-webui are affected and fixed?
CVE-2024-31462 is a path traversal (reading or writing files outside the intended folder) vulnerability in AUTOMATIC1111 stable-diffusion-webui. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: stable-diffusion-webui <= 1.8.0 (CVE record by GitHub_M). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:30 UTC.
What is CVE-2024-31462?
Limited file write in Stable-diffusion-webui - GHSL-2024-010
stable-diffusion-webui is a web interface for Stable Diffusion, implemented using Gradio library. Stable-diffusion-webui 1.7.0 is vulnerable to a limited file write affecting Windows systems. The create_ui method (Backup/Restore tab) in modules/ui_extensions.py takes user input into the config_save_name variable on line 653. This user input is later used in the save_config_state method and used to create a file path on line 65, which is afterwards opened for writing on line 67, which leads to a limited file write exploitable on Windows systems. This issue may lead to limited file write. It allows for writing json files anywhere on the server where the web server has access.
From the CVE record by GitHub_M, last updated August 2, 2024, 01:52 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| AUTOMATIC1111 | stable-diffusion-webui | <= 1.8.0 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2024-31462?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-31462 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, May 31, 2024)
- EPSS
- 0.68% probability of exploitation activity in the next 30 days, percentile 53.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://securitylab.github.com/advisories/GHSL-2024-010_stable-diffusion-webui/ x_refsource_CONFIRM
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/d9708c92b444894bce8070e4dcfaa093f8eb8d43 x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/cf2772fab0af5573da775e7437e6acdca424f26e/modules/ui_extensions.py#L59 x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/cf2772fab0af5573da775e7437e6acdca424f26e/modules/ui_extensions.py#L646-L660 x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/cf2772fab0af5573da775e7437e6acdca424f26e/modules/ui_extensions.py#L65 x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/cf2772fab0af5573da775e7437e6acdca424f26e/modules/ui_extensions.py#L653 x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/cf2772fab0af5573da775e7437e6acdca424f26e/modules/ui_extensions.py#L67 x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/v1.7.0/modules/ui_extensions.py x_refsource_MISC
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/15461 x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2024-010_stable-diffusion-webui x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 3, 2024
- Published
- April 12, 2024, 21:41 UTC
- CVE record updated
- August 2, 2024, 01:52 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:28 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:30 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect stable-diffusion-webui?
- Oct 18, 2026CVE-2026-111987 AUTOMATIC1111 stable-diffusion-webui: cross-site scripting (XSS)
- Oct 18, 2026CVE-2026-111986 AUTOMATIC1111 stable-diffusion-webui: code injection (remote code execution)
- Oct 18, 2026CVE-2026-111985 AUTOMATIC1111 stable-diffusion-webui: denial of service (resources allocated without limits)
- Oct 18, 2026CVE-2026-111984 AUTOMATIC1111 stable-diffusion-webui: cross-site scripting (XSS)
- Aug 28, 2026CVE-2026-82288 AUTOMATIC1111 stable-diffusion-webui: credentials insufficiently protected
Every CVE in stable-diffusion-webui
Questions about CVE-2024-31462
Is CVE-2024-31462 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.68% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of AUTOMATIC1111 stable-diffusion-webui are affected by CVE-2024-31462?
stable-diffusion-webui <= 1.8.0, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2024-31462?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2024-31462?
Medium (6.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-31462?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.