CVE-2024-31462

Limited file write in Stable-diffusion-webui - GHSL-2024-010

Description

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.

Category

6.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.18%
Affected: AUTOMATIC1111 stable-diffusion-webui
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-31462?
CVE-2024-31462 has been scored as a medium severity vulnerability.
How to fix CVE-2024-31462?
To fix CVE-2024-31462, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-31462 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-31462 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-31462?
CVE-2024-31462 affects AUTOMATIC1111 stable-diffusion-webui.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.