VDB

CVE-2026-9323

CVE-2026-9323 PUBLISHED CVSS 9.2 CRITICAL

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.

PackageEcosystemFixed in
python-urwid-debugsourceerrata.rockylinux.org2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8
python-urwiderrata.rockylinux.org2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8
python3-urwiderrata.rockylinux.org2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8
python3-urwid-debuginfoerrata.rockylinux.org2.5.3-4.el10, 2.1.2-4.el9, 1.3.1-5.el8
python3-urwidAmazon Linux2.1.2-5.amzn2023.0.1
python-urwidAmazon Linux1.1.1-3.amzn2.0.3
urwidurwid5.1.0

Risk scores

CVSS 4.0
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

Affected products

VendorProductVersions
urwidurwid0
amazon:2023python3-urwid0
amazon:2python-urwid0
urwidurwid0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›