
CVE catalog
CVE-2026-9323
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 Twiste
- Severity
- Critical · CVSS 9.2
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 - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.71% · Oct 25, 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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | urwid | sid | 4.2.5-1 | fixed |
| Debian | urwid | forky | 4.2.5-1 | fixed |
| Debian | urwid | trixie | 2.6.16-1 | vulnerable |
| Debian | urwid | bookworm | 2.1.2-4 | vulnerable |
| Debian | urwid | bookworm-security | 2.1.2-4+deb12u1 | fixed |
| Cpe | urwid | Not reported | Not reported | vulnerable |
| Ubuntu | urwid | pro | 2.6.16-1 | vulnerable |
| Ubuntu | urwid | pro | 3.0.4-1 | vulnerable |
| Ubuntu | urwid | pro | 3.0.4-1ubuntu0.1~esm1 | fixed |
| Ubuntu | urwid | 22.04 | 2.1.2-1build1 | vulnerable |
| Ubuntu | urwid | 22.04 | 2.1.2-1build3 | vulnerable |
| Ubuntu | urwid | 22.04 | 2.1.2-2 | vulnerable |
| Ubuntu | urwid | 22.04 | 2.1.2-2build1 | vulnerable |
| Ubuntu | urwid | 22.04 | 2.1.2-2ubuntu0.1 | fixed |
| Suse | python-urwid | linux enterprise module for basesystem 15 sp7 | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp4-espos | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp4-ltss | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp5-espos | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp5-ltss | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise server 15 sp4-ltss | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise server 15 sp5-ltss | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise server 15 sp6-ltss | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise server for sap applications 15 sp4 | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise server for sap applications 15 sp5 | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise server for sap applications 15 sp6 | 2.0.1-150000.3.3.1 | fixed |
| Suse | python-urwid | linux enterprise module for python 3 15 sp7 | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp4-espos | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp4-ltss | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp5-espos | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise high performance computing 15 sp5-ltss | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise server 15 sp4-ltss | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise server 15 sp5-ltss | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise server 15 sp6-ltss | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise server for sap applications 15 sp4 | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise server for sap applications 15 sp5 | 2.1.2-150400.11.6.1 | fixed |
| Suse | python-urwid | linux enterprise server for sap applications 15 sp6 | 2.1.2-150400.11.6.1 | fixed |
| Opensuse | python-urwid | tumbleweed | 4.0.5-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | urwid | source | sid | 4.1.3-1 | not yet assigned | Not reported | [1147615] |
| Debian | urwid | source | forky | 4.1.3-1 | not yet assigned | Not reported | [1147615] |
| Debian | urwid | source | trixie | (unfixed) | not yet assigned | Not reported | [1147615] |
| Debian | urwid | source | bookworm | 2.1.2-4+deb12u1 | not yet assigned | Not reported | [1147615] |
| Ubuntu | urwid | deb | pro | 3.0.4-1ubuntu0.1~esm1 | Not reported | USN-8751-1 | Not reported |
| Ubuntu | urwid | deb | 22.04 | 2.1.2-2ubuntu0.1 | Not reported | USN-8751-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise module for basesystem 15 sp7 | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp4-espos | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp4-ltss | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp5-espos | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp5-ltss | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server 15 sp4-ltss | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server 15 sp5-ltss | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server 15 sp6-ltss | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server for sap applications 15 sp4 | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server for sap applications 15 sp5 | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server for sap applications 15 sp6 | 2.0.1-150000.3.3.1 | Not reported | SUSE-SU-2026:3460-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise module for python 3 15 sp7 | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp4-espos | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp4-ltss | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp5-espos | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise high performance computing 15 sp5-ltss | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server 15 sp4-ltss | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server 15 sp5-ltss | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server 15 sp6-ltss | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server for sap applications 15 sp4 | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server for sap applications 15 sp5 | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Suse | python-urwid | rpm | linux enterprise server for sap applications 15 sp6 | 2.1.2-150400.11.6.1 | Not reported | SUSE-SU-2026:3425-1 | Not reported |
| Opensuse | python-urwid | rpm | tumbleweed | 4.0.5-1.1 | Not reported | OPENSUSE-SU-2026:11356-1 | Not reported |
Notes
[trixie] urwid: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-urwid]Affected
Source package: [urwid]
Details (2)
2.1.2-4+b1· amd64 · bookwormAffected · Fixed:
2.1.2-4+deb12u1nvd · urwid · debian · bookworm; nvd · urwid · debian · 12
2.1.2-4+b1· arm64 · bookwormAffected · Fixed:
2.1.2-4+deb12u1nvd · urwid · debian · bookworm; nvd · urwid · debian · 12
- [python-urwid-doc]Affected
Source package: [urwid]
Details (2)
2.1.2-4· all · bookwormAffected · Fixed:
2.1.2-4+deb12u1nvd · urwid · debian · bookworm; nvd · urwid · debian · 12
2.1.2-4· all · bookwormAffected · Fixed:
2.1.2-4+deb12u1nvd · urwid · debian · bookworm; nvd · urwid · debian · 12
[Debian 13 (Trixie)]
- [python3-urwid]Affected
Source package: [urwid]
Details (2)
2.6.16-1· amd64 · trixieAffected
nvd · urwid · debian · 13
2.6.16-1· arm64 · trixieAffected
nvd · urwid · debian · 13
- [python-urwid-doc]Affected
Source package: [urwid]
Details (2)
2.6.16-1· all · trixieAffected
nvd · urwid · debian · 13
2.6.16-1· all · trixieAffected
nvd · urwid · debian · 13
[openSUSE Tumbleweed]
- [python313-urwid]Unknown
Source package: [python-urwid]
Details (1)
4.0.11-1.1· noarch · tumbleweedUnknown · Fixed:
4.0.5-1.1Version impact unknown
nvd · python-urwid · opensuse · tumbleweed
- [python314-urwid]Unknown
Source package: [python-urwid]
Details (1)
4.0.11-1.1· noarch · tumbleweedUnknown · Fixed:
4.0.5-1.1Version impact unknown
nvd · python-urwid · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11356-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-9323]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-9323]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3425-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3460-1]
- [https://osv.dev/vulnerability/USN-8751-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11356-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-9323]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9323.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2961.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]