CVE-2026-9323
Insecure PRNG and Information Exposure in urwid Web Display Backend
Reported by vulncheck · Published July 18, 2026
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python-urwid-debugsource | errata.rockylinux.org | 2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8 |
| python-urwid | errata.rockylinux.org | 2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8 |
| python3-urwid | errata.rockylinux.org | 2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8 |
| python3-urwid-debuginfo | errata.rockylinux.org | 2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8 |
| python3-urwid | Amazon Linux | 2.1.2-5.amzn2023.0.1 |
| python-urwid | Amazon Linux | 1.1.1-3.amzn2.0.3 |
| urwid | urwid | 5.1.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| urwid | urwid | 0 |
| amazon:2023 | python3-urwid | 0 |
| amazon:2 | python-urwid | 0 |
| urwid | urwid | 0 |
Timeline
- Jul 18, 2026 CVE Published
- Jul 19, 2026 Coalition ESS Score
- Jul 19, 2026 Security Advisory (10 in total, the first dated here)
- Jul 23, 2026 CVE Updated
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 23, 2026 Distribution Patch (12 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-9323
vulnetix vdb fixes CVE-2026-9323
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-9323/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GitHub Security Advisory (GHSA-rjwp-g85x-gmjv) vendor-advisory
- GitHub Security Advisory (GHSA-xm5p-pwm6-5w65) vendor-advisory
- Product product
- Patch Commit patch
- GitHub Issue issue-tracking
- Pull Request issue-trackingpatch
- third-party-advisory
- https://lists.debian.org/debian-lts-announce/2026/09/msg00015.html url