Skip to main content
VulnerabilityPublished

CVE-2026-103022: Urwid · handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)

Affects khalSource GCVE Database

0
Compare
Authoritative record:CVE-2026-103022· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.14.1 or 0.9.0 when convenient.

Data as of 10 Nov 2026, 18:55 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.3
Patch
Available – fixed in 0.14.1, 0.9.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.

What to do

Upgrade khal to 0.14.1 or 0.9.0.

Affected software

ProductAffectedFixed in
Homebrewkhalpkg:brew/khalOther threatsAffected
  • >=0.5.0 <0.9.0
  • >=0.10.1_2 <0.14.1
Fixed in
  • 0.9.0
  • 0.14.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in urwid version 4.0.7 that fixes the unhandled exceptions and resource leak. Users should upgrade to version 4.0.7 or later. No direct workaround exists other than disabling the urwid web display interface.

Description

The handle_short_request() function in urwid's web.py crashes with an unhandled UnicodeEncodeError when processing POST request bodies containing non-ASCII bytes, causing the CGI process to exit and return HTTP 500 errors. This also leads to a file descriptor leak. A similar unhandled UnicodeDecodeError occurs in the polling update path with non-UTF-8 socket output. These issues allow an attacker who knows a valid session token to cause a denial of service by sending malformed POST requests. The vulnerability affects urwid versions up to 4.0.6 and is fixed in version 4.0.7.

References

Community reviews

Loading reviews…