CVE-2026-9323
Last modified
CVE-2026-9323 is a critical-severity vulnerability rated 9.2/10 on the CVSS scale. 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). EPSS estimates a 0.42% chance of exploitation in the next 30 days.
Description
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
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| urwid | urwid | <= 24acd12 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-9323?
How severe is CVE-2026-9323?
How do I fix CVE-2026-9323?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-9311IBM WebSphere Application Server 9.0, and 8.5 is vulnerable …9
- CVE-2026-9312A server-side request forgery (SSRF) vulnerability was ident…8.2
- CVE-2026-9318tablib prior to 3.10.0 contains a stored cross-site scriptin…5.4
- CVE-2026-9319IBM WebSphere Application Server 9.0, and 8.5 is vulnerable …9
- CVE-2026-9320IBM WebSphere Application Server 9.0, and 8.5 and IBM WebSph…7.5
- CVE-2026-9322IBM WebSphere Application Server 9.0, and 8.5 and IBM WebSph…7.5
- CVE-2026-9330IBM WebSphere Application Server 9.0, and 8.5 is affected by…8.5
- CVE-2026-9334Cpanel::JSON::XS versions before 4.41 for Perl allow type co…7.3
- CVE-2026-9335A vulnerability in keras-team/keras versions <= 3.14.0 allow…6.5
- CVE-2026-9341The Academy LMS – WordPress LMS Plugin for Complete eLearnin…4.3
- CVE-2026-9342A security flaw has been discovered in SourceCodester Hospit…6.3
- CVE-2026-9343A weakness has been identified in Edimax EW-7438RPn up to 1.…6.3
Are you affected by CVE-2026-9323?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
