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

[CVE catalog]

Severity
Critical · CVSS 9.2CVSS: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.

DistributionPackageReleaseVersionStatus
Debianurwidsid4.2.5-1fixed
Debianurwidforky4.2.5-1fixed
Debianurwidtrixie2.6.16-1vulnerable
Debianurwidbookworm2.1.2-4vulnerable
Debianurwidbookworm-security2.1.2-4+deb12u1fixed
CpeurwidNot reportedNot reportedvulnerable
Ubuntuurwidpro2.6.16-1vulnerable
Ubuntuurwidpro3.0.4-1vulnerable
Ubuntuurwidpro3.0.4-1ubuntu0.1~esm1fixed
Ubuntuurwid22.042.1.2-1build1vulnerable
Ubuntuurwid22.042.1.2-1build3vulnerable
Ubuntuurwid22.042.1.2-2vulnerable
Ubuntuurwid22.042.1.2-2build1vulnerable
Ubuntuurwid22.042.1.2-2ubuntu0.1fixed
Susepython-urwidlinux enterprise module for basesystem 15 sp72.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp4-espos2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp4-ltss2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp5-espos2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp5-ltss2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise server 15 sp4-ltss2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise server 15 sp5-ltss2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise server 15 sp6-ltss2.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise server for sap applications 15 sp42.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise server for sap applications 15 sp52.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise server for sap applications 15 sp62.0.1-150000.3.3.1fixed
Susepython-urwidlinux enterprise module for python 3 15 sp72.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp4-espos2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp4-ltss2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp5-espos2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise high performance computing 15 sp5-ltss2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise server 15 sp4-ltss2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise server 15 sp5-ltss2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise server 15 sp6-ltss2.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise server for sap applications 15 sp42.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise server for sap applications 15 sp52.1.2-150400.11.6.1fixed
Susepython-urwidlinux enterprise server for sap applications 15 sp62.1.2-150400.11.6.1fixed
Opensusepython-urwidtumbleweed4.0.5-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianurwidsourcesid4.1.3-1not yet assignedNot reported[1147615]
Debianurwidsourceforky4.1.3-1not yet assignedNot reported[1147615]
Debianurwidsourcetrixie(unfixed)not yet assignedNot reported[1147615]
Debianurwidsourcebookworm2.1.2-4+deb12u1not yet assignedNot reported[1147615]
Ubuntuurwiddebpro3.0.4-1ubuntu0.1~esm1Not reportedUSN-8751-1Not reported
Ubuntuurwiddeb22.042.1.2-2ubuntu0.1Not reportedUSN-8751-1Not reported
Susepython-urwidrpmlinux enterprise module for basesystem 15 sp72.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp4-espos2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp4-ltss2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp5-espos2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp5-ltss2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise server 15 sp4-ltss2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise server 15 sp5-ltss2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise server 15 sp6-ltss2.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise server for sap applications 15 sp42.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise server for sap applications 15 sp52.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise server for sap applications 15 sp62.0.1-150000.3.3.1Not reportedSUSE-SU-2026:3460-1Not reported
Susepython-urwidrpmlinux enterprise module for python 3 15 sp72.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp4-espos2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp4-ltss2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp5-espos2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise high performance computing 15 sp5-ltss2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise server 15 sp4-ltss2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise server 15 sp5-ltss2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise server 15 sp6-ltss2.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise server for sap applications 15 sp42.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise server for sap applications 15 sp52.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Susepython-urwidrpmlinux enterprise server for sap applications 15 sp62.1.2-150400.11.6.1Not reportedSUSE-SU-2026:3425-1Not reported
Opensusepython-urwidrpmtumbleweed4.0.5-1.1Not reportedOPENSUSE-SU-2026:11356-1Not reported

[Debian bug #1147615]

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 · bookworm

      Affected · Fixed: 2.1.2-4+deb12u1

      nvd · urwid · debian · bookworm; nvd · urwid · debian · 12

    • 2.1.2-4+b1 · arm64 · bookworm

      Affected · Fixed: 2.1.2-4+deb12u1

      nvd · urwid · debian · bookworm; nvd · urwid · debian · 12

  • Source package: [urwid]

    Details (2)
    • 2.1.2-4 · all · bookworm

      Affected · Fixed: 2.1.2-4+deb12u1

      nvd · urwid · debian · bookworm; nvd · urwid · debian · 12

    • 2.1.2-4 · all · bookworm

      Affected · Fixed: 2.1.2-4+deb12u1

      nvd · urwid · debian · bookworm; nvd · urwid · debian · 12

[Debian 13 (Trixie)]

  • [python3-urwid]Affected

    Source package: [urwid]

    Details (2)
    • 2.6.16-1 · amd64 · trixie

      Affected

      nvd · urwid · debian · 13

    • 2.6.16-1 · arm64 · trixie

      Affected

      nvd · urwid · debian · 13

  • Source package: [urwid]

    Details (2)
    • 2.6.16-1 · all · trixie

      Affected

      nvd · urwid · debian · 13

    • 2.6.16-1 · all · trixie

      Affected

      nvd · urwid · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-urwid]

    Details (1)
    • 4.0.11-1.1 · noarch · tumbleweed

      Unknown · Fixed: 4.0.5-1.1

      Version impact unknown

      nvd · python-urwid · opensuse · tumbleweed

  • Source package: [python-urwid]

    Details (1)
    • 4.0.11-1.1 · noarch · tumbleweed

      Unknown · Fixed: 4.0.5-1.1

      Version impact unknown

      nvd · python-urwid · opensuse · tumbleweed

Observed:

References