Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-9323
PUBLISHED
More InfoOfficial Page
Assigner-VulnCheck
Assigner Org ID-83251b91-4cc7-4094-a5c7-464a1b83ea10
View Known Exploited Vulnerability (KEV) details
Published At-18 Jul, 2026 | 13:51
Updated At-18 Jul, 2026 | 13:51
Rejected At-
▼CVE Numbering Authority (CNA)
Insecure PRNG and Information Exposure in urwid Web Display Backend

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

Affected Products
Vendor
urwid
Product
urwid
Default Status
affected
Versions
Affected
  • From 0 through 24acd12 (git)
Problem Types
TypeCWE IDDescription
CWECWE-338Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Type: CWE
CWE ID: CWE-338
Description: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Metrics
VersionBase scoreBase severityVector
4.09.2CRITICAL
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
3.18.1HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Version: 4.0
Base score: 9.2
Base severity: CRITICAL
Vector:
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
Version: 3.1
Base score: 8.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

reporter
Katriel Moses
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/urwid/urwid/security/advisories/GHSA-rjwp-g85x-gmjv
technical-description
https://github.com/urwid/urwid
product
https://github.com/urwid/urwid/commit/24acd12f0d0598036d0d577f2ee63e4a27b4a3d9
patch
https://github.com/urwid/urwid/issues/1127
technical-description
https://github.com/urwid/urwid/pull/1128
N/A
https://www.vulncheck.com/advisories/insecure-prng-and-information-exposure-in-urwid-web-display-backend
third-party-advisory
Hyperlink: https://github.com/urwid/urwid/security/advisories/GHSA-rjwp-g85x-gmjv
Resource:
technical-description
Hyperlink: https://github.com/urwid/urwid
Resource:
product
Hyperlink: https://github.com/urwid/urwid/commit/24acd12f0d0598036d0d577f2ee63e4a27b4a3d9
Resource:
patch
Hyperlink: https://github.com/urwid/urwid/issues/1127
Resource:
technical-description
Hyperlink: https://github.com/urwid/urwid/pull/1128
Resource: N/A
Hyperlink: https://www.vulncheck.com/advisories/insecure-prng-and-information-exposure-in-urwid-web-display-backend
Resource:
third-party-advisory
Details not found