SB2026042409 - Multiple vulnerabilities in Text Generation Web UI



SB2026042409 - Multiple vulnerabilities in Text Generation Web UI

Published: April 24, 2026

Security Bulletin ID SB2026042409
CSH Severity
High
Patch available
YES
Number of vulnerabilities 4
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 4 vulnerabilities.


1) Path traversal (CVE-ID: N/A)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a remote attacker to write or delete arbitrary files.

The vulnerability exists due to path traversal in character management functions in modules/chat.py when handling character names and filenames supplied through the Gradio API. A remote attacker can send specially crafted character data containing traversal sequences to write or delete arbitrary files.

The issue is reachable without authentication when the server is exposed with the --listen option.


2) Input validation error (CVE-ID: N/A)

CWE-ID: CWE-20 - Improper input validation

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper input validation in the API extension when handling a crafted API request to the "/v1/internal/model/load" endpoint. A remote attacker can supply a crafted "args" value that sets "trust_remote_code" to true to execute arbitrary code.

By default, authentication is not required to exploit this vulnerability.


3) Path traversal (CVE-ID: N/A)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a remote attacker to write or delete arbitrary files.

The vulnerability exists due to path traversal in character management functions in modules/chat.py when handling character names and filenames supplied through the Gradio API. A remote attacker can send specially crafted character data containing traversal sequences to write or delete arbitrary files.

The issue is reachable without authentication when the server is exposed via the --listen option.


4) Input validation error (CVE-ID: N/A)

CWE-ID: CWE-20 - Improper input validation

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper input validation in the API extension when handling requests to the /v1/internal/model/load endpoint. A remote attacker can send a specially crafted request with a trust_remote_code argument to execute arbitrary code.

By default, authentication is not required to exploit this vulnerability.


Remediation

Install update from vendor's website.