SB2026042409 - Multiple vulnerabilities in Text Generation Web UI
Published: April 24, 2026
Breakdown by Severity
- 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.
References
- https://github.com/oobabooga/text-generation-webui/security/advisories/GHSA-4p45-76cc-7p62
- https://github.com/oobabooga/text-generation-webui/security/advisories/GHSA-j53j-fh8f-rpw3
- https://github.com/advisories/GHSA-j53j-fh8f-rpw3
- https://github.com/oobabooga/textgen/security/advisories/GHSA-4p45-76cc-7p62
- https://github.com/oobabooga/textgen/security/advisories/GHSA-j53j-fh8f-rpw3