{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-9323 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-9323 is a critical vulnerability in urwid, published on 18 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-9323 and fix it if it is affected.\n\nWhat it is: CVE-2026-9323 is a critical vulnerability in urwid, published on 18 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-9323 in the wild and no public exploit code.\n\nAffected product: urwid. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-9323/ (Markdown: https://insights.sbomify.com/CVE-2026-9323/index.md)","id":"CVE-2026-9323","markdown":"https://insights.sbomify.com/CVE-2026-9323/index.md","name":"CVE-2026-9323","record":{"aliases":["ALSA-2026:58561","ALSA-2026:58562","ALSA-2026:58952","AZL-92916","BELL-CVE-2026-9323","DEBIAN-CVE-2026-9323","GHSA-83x9-8wvq-rrcp","GHSA-rjwp-g85x-gmjv","MGASA-2026-0466","OESA-2026-3193","RHSA-2026:57637","RHSA-2026:57638","RHSA-2026:58561","RHSA-2026:58562","RHSA-2026:58952","RHSA-2026:58953","RHSA-2026:58954","RHSA-2026:58955","RHSA-2026:59198","RHSA-2026:60353","RLSA-2026:58561","RLSA-2026:58562","RLSA-2026:58952","SUSE-SU-2026:3425-1","SUSE-SU-2026:3460-1","UBUNTU-CVE-2026-9323","USN-8751-1","openSUSE-SU-2026:11356-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python TUI library","requires_auth":"none","summary":"Insecure PRNG allows session ID prediction, enabling attackers to hijack sessions, execute code, or crash the application.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","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":"4.0"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"description":"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","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_aus:8.4::baseos","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.2::baseos","Red Hat:rhel_e4s:9.4::baseos","Red Hat:rhel_eus:9.6::baseos","Red Hat:rhel_eus_long_life:8.4::baseos","Red Hat:rhel_eus_long_life:8.6::baseos","Red Hat:rhel_tus:8.8::baseos","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Module for Python 3 15 SP7","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP6-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Insecure PRNG and Information Exposure in urwid Web Display Backend","id":"CVE-2026-9323","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"weak_cryptography","year":"2026"},"n_packages":81,"n_references":6,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-9324"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["2.5.3-4.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/almalinux/python3-urwid","source":"ALSA-2026:58561"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.1-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/almalinux/python3-urwid","source":"ALSA-2026:58562"},{"ecosystem":"AlmaLinux:9","fixed":["2.1.2-4.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/almalinux/python3-urwid","source":"ALSA-2026:58952"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.5.3-4.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:58561"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.5.3-4.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:58561"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.5.3-4.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:58561"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.5.3-4.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:58561"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.1-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:58562"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.1-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:58562"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.1-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:58562"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.1-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:58562"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.1.2-4.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:58952"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.1.2-4.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:58952"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.1.2-4.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:58952"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.1.2-4.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:58952"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.5.3-4.el10_0.5"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:60353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.5.3-4.el10_0.5"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:60353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.5.3-4.el10_0.5"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:60353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.5.3-4.el10_0.5"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:60353"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:1.3.1-4.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:57638"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:1.3.1-4.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:57638"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:1.3.1-4.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:57638"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:1.3.1-4.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:57638"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:1.3.1-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:59198"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:1.3.1-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:59198"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:1.3.1-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:59198"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:1.3.1-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:59198"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1.3.1-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:57637"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1.3.1-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:57637"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1.3.1-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:57637"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1.3.1-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:57637"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:2.1.2-4.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:58954"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:2.1.2-4.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:58954"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:2.1.2-4.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:58954"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:2.1.2-4.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:58954"},{"ecosystem":"Red Hat:rhel_e4s:9.4::baseos","fixed":["0:2.1.2-4.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:58953"},{"ecosystem":"Red Hat:rhel_e4s:9.4::baseos","fixed":["0:2.1.2-4.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid-debugsource","purl":"pkg:rpm/redhat/python-urwid-debugsource","source":"RHSA-2026:58953"},{"ecosystem":"Red Hat:rhel_e4s:9.4::baseos","fixed":["0:2.1.2-4.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid","purl":"pkg:rpm/redhat/python3-urwid","source":"RHSA-2026:58953"},{"ecosystem":"Red Hat:rhel_e4s:9.4::baseos","fixed":["0:2.1.2-4.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-urwid-debuginfo","purl":"pkg:rpm/redhat/python3-urwid-debuginfo","source":"RHSA-2026:58953"},{"ecosystem":"Red Hat:rhel_eus:9.6::baseos","fixed":["0:2.1.2-4.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python-urwid","purl":"pkg:rpm/redhat/python-urwid","source":"RHSA-2026:58955"}],"prev":{"headline":"IBM WebSphere Application Server and WebSphere Application Server Liberty are affected by multiple vulnerabilities","id":"CVE-2026-9322"},"products":["urwid"],"published":"2026-07-18","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-15","vendors":["urwid"]},"summary":"Insecure PRNG allows session ID prediction, enabling attackers to hijack sessions, execute code, or crash the application.","url":"https://insights.sbomify.com/CVE-2026-9323/"}