CVE-2026-9323urwid
Critical 9.2 No auth needed
Follow: this CVE · urwid · urwid We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.2
- EPSS
- —
- Auth required
- No
- Published
- Jul 18, 2026
- Updated
- Nov 20, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-338
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id) in Screen.start() by concatenating two random.randrange(10**9) calls that use Python's Mersenne Twister PRNG, which is not cryptographically secure. Each call consumes approximately 30 bits of PRNG state, and the Mersenne Twister internal state is approximately 19,937 bits, so an attacker who observes approximately 334 session IDs (for example via the X-Urwid-ID HTTP response header) can fully reconstruct the internal state and predict all past and future session IDs (Path B). The same identifier is also used as the filename of a FIFO created in the world-listable /tmp directory (for example /tmp/urwid375487765176907690.in), so any local user on the host can list /tmp to enumerate active session tokens directly (Path A). With a valid session ID, an attacker can read the victim's terminal screen via the polling endpoint, inject keystrokes into the victim's session (yielding OS-level code execution with the session owner's privileges if the session runs a shell), and inject exit sequences or flood the FIFO to terminate or crash the session. A prior Bandit S311 warning on this usage was suppressed with # noqa: S311 rather than fixed
What to do
- Apply the vendor's security update for urwid.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- urwid · urwid
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: python-urwid security update · Red Hat · RHSA-2026:104683 · Nov 30, 2026 High
- Red Hat Security Advisory: python-urwid security update · Red Hat · RHSA-2026:104682 · Nov 30, 2026 High
- Red Hat Security Advisory: python-urwid security update · Red Hat · RHSA-2026:60353 · Aug 27, 2026 High
- Security update for python-urwid · SUSE · SUSE-SU-2026:3460-1 · Aug 3, 2026 Critical
- Security update for python-urwid · SUSE · SUSE-SU-2026:3425-1 · Jul 30, 2026 Critical
- python313-urwid-4.0.5-1.1 on GA media · SUSE · openSUSE-SU-2026:11356-1 · Jul 23, 2026 Critical
Also: Red Hat (+9)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.