CVE-2026-9323
Last modified
CVE-2026-9323 is a high-severity vulnerability rated 8.1/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
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-93224In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2026-93225In the Linux kernel, the following vulnerability has been re…7.4
- CVE-2026-93226In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93227In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93228In the Linux kernel, the following vulnerability has been re…9.1
- CVE-2026-93229In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-93230In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93231In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93232In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93233In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93234In the Linux kernel, the following vulnerability has been re…
- CVE-2026-93235In the Linux kernel, the following vulnerability has been re…
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
