Urwid
Monthly
Session hijacking and keystroke injection in the urwid Python library's web display backend (urwid/display/web.py) let attackers take over active web terminal sessions and reach OS-level code execution with the session owner's privileges. The urwid_id session token is generated with Python's non-cryptographic Mersenne Twister PRNG, so a remote attacker who observes roughly 334 session IDs (e.g. via the X-Urwid-ID response header) can reconstruct PRNG state and predict every past and future token, while any local user can read the same token from world-listable FIFO filenames in /tmp. No public exploit has been identified at time of analysis; the issue was reported by VulnCheck and carries a 9.2 (CVSS 4.0) severity.
Urwid's optional web display interface crashes on malformed input: an attacker holding a valid X-Urwid-ID session token can POST non-ASCII bytes (any byte above 0x7F) to the CGI endpoint, raising an unhandled UnicodeEncodeError that returns HTTP 500 and, in the same code path, leaks an open file descriptor for the life of the CGI process. A parallel defect causes an unhandled UnicodeDecodeError when the polling update socket emits non-UTF-8 data. Repeated requests therefore deny service only to deployments of the urwid web display; terminal-only usage is unaffected, no public exploit code was identified at time of analysis, and the advisory rates it an availability-only issue (CVSS 5.3) rather than a high-priority emergency.
Session hijacking and keystroke injection in the urwid Python library's web display backend (urwid/display/web.py) let attackers take over active web terminal sessions and reach OS-level code execution with the session owner's privileges. The urwid_id session token is generated with Python's non-cryptographic Mersenne Twister PRNG, so a remote attacker who observes roughly 334 session IDs (e.g. via the X-Urwid-ID response header) can reconstruct PRNG state and predict every past and future token, while any local user can read the same token from world-listable FIFO filenames in /tmp. No public exploit has been identified at time of analysis; the issue was reported by VulnCheck and carries a 9.2 (CVSS 4.0) severity.
Urwid's optional web display interface crashes on malformed input: an attacker holding a valid X-Urwid-ID session token can POST non-ASCII bytes (any byte above 0x7F) to the CGI endpoint, raising an unhandled UnicodeEncodeError that returns HTTP 500 and, in the same code path, leaks an open file descriptor for the life of the CGI process. A parallel defect causes an unhandled UnicodeDecodeError when the polling update socket emits non-UTF-8 data. Repeated requests therefore deny service only to deployments of the urwid web display; terminal-only usage is unaffected, no public exploit code was identified at time of analysis, and the advisory rates it an availability-only issue (CVSS 5.3) rather than a high-priority emergency.