Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| urwid | urwid | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Urwid | Urwid |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-cp25-j9x5-p5xm | Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS) |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.472% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Urwid
Urwid urwid |
|
| Vendors & Products |
Urwid
Urwid urwid |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Urwid is a console user interface library for Python. Prior to 4.0.7, handle_short_request() in urwid/display/web.py performs unguarded character encoding on POST input and unguarded UTF-8 decoding on polling update socket output. A remote attacker who obtains a valid X-Urwid-ID session token can submit non-ASCII POST data that raises UnicodeEncodeError, while non-UTF-8 polling output raises UnicodeDecodeError, causing the CGI handler to return an error and terminate request processing. The POST exception path also leaves an opened file descriptor unclosed for the CGI process lifetime, so repeated requests can cause denial of service for the web display interface. This issue is fixed in version 4.0.7. | |
| Title | Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS) | |
| Weaknesses | CWE-116 CWE-248 CWE-775 |
|
| References |
| |
| Metrics |
cvssV3_1
|