CVE-2026-103022
published medium CVSS 3.1 · 5.3Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| urwid | — | urwid< 4.0.7 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-urwidnoarch | Advisory build | 2.6.16-bp160.2.1 | OPENSUSE-SU-2026:22443-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| urwid | urwid | < 4.0.7 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-116 CWE-116: Improper Encoding or Escaping of Output
- CWE-248 CWE-248: Uncaught Exception
- CWE-775 CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime
References
4Provider assertions
2GitHub_M · cna
Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5c2e2e0b95e8aa6c0ee38d671472caa3971906be4708291bf9379dc861e7c3e2
- Ingested
- 11 Nov 2026, 03:50:02 UTC
- Source record
- Official CVE record