CVE-2026-9323

EUVD-2026-45381
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
PRNG
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 35.08%
Debian logo
Debian Releases
Debian Product
Codename
urwid
bookworm
vulnerable
bullseye
vulnerable
forky
vulnerable
sid
vulnerable
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
urwid
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
needs-triage
resolute
needs-triage
xenial
needs-triage
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
python3-urwid
suse enterprise sap 15 SP4
2.0.1-150000.3.3.1
fixed
suse enterprise sap 15 SP5
2.0.1-150000.3.3.1
fixed
suse enterprise sap 15 SP6
2.0.1-150000.3.3.1
fixed
suse enterprise server 15 SP4
2.0.1-150000.3.3.1
fixed
suse enterprise server 15 SP5
2.0.1-150000.3.3.1
fixed
suse enterprise server 15 SP6
2.0.1-150000.3.3.1
fixed
python311-urwid
suse enterprise sap 15 SP4
2.1.2-150400.11.6.1
fixed
suse enterprise sap 15 SP5
2.1.2-150400.11.6.1
fixed
suse enterprise sap 15 SP6
2.1.2-150400.11.6.1
fixed
suse enterprise server 15 SP4
2.1.2-150400.11.6.1
fixed
suse enterprise server 15 SP5
2.1.2-150400.11.6.1
fixed
suse enterprise server 15 SP6
2.1.2-150400.11.6.1
fixed
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
python3-urwid
RHEL 9
0:2.1.2-4.el9_8.1
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
python-urwid
Amazon Linux 2
0:1.1.1-3.amzn2.0.3
fixed
python-urwid-debuginfo
Amazon Linux 2
0:1.1.1-3.amzn2.0.3
fixed
python-urwid-debugsource
Amazon Linux 2023
0:2.1.2-5.amzn2023.0.1
fixed
python3-urwid
Amazon Linux 2023
0:2.1.2-5.amzn2023.0.1
fixed
python3-urwid-debuginfo
Amazon Linux 2023
0:2.1.2-5.amzn2023.0.1
fixed