BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-31462 in Gradio products

Medium 6.3

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 ...

Affects 0 products from 3 vendors. Facts below cite their sources.

CVSS 3.16.3
EPSS0.9%
EPSS percentile58th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component.

Affected products and versions

VendorProductAffected versions
Gradio — —
Takes — —
Windows — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-31462
BreachSpider IDBS-2024-GLOBAL-050334-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Published2024-04-12
Last modified2026-04-15
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

Related attack patterns (CAPEC)

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

CAPEC-126 Path Traversal via CWE-22

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Stable-diffusion-webui version 1.7.0 is vulnerable to a limited file write issue on Windows systems, allowing an attacker to write to unintended files through user input in the Backup/Restore tab.

The vulnerability exists in the create_ui method within modules/ui_extensions.py, where user input is taken into the config_save_name variable and subsequently used in the save_config_state method without proper validation, leading to potential file write operations to unintended locations.

Questions

What is CVE-2024-31462?

Stable-diffusion-webui version 1.7.0 is vulnerable to a limited file write issue on Windows systems, allowing an attacker to write to unintended files through user input in the Backup/Restore tab.

What is the CVSS score for CVE-2024-31462?

CVE-2024-31462 has CVSS 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L. EPSS: 0.9%.

Is CVE-2024-31462 actively exploited?

No confirmed active exploitation of CVE-2024-31462 as of 2026-05-30.

How do I remediate CVE-2024-31462?

Priority: MEDIUM.

What systems are affected by CVE-2024-31462?

CVE-2024-31462 affects Gradio; Takes; Windows.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Gradio","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.