{"id":"CVE-2026-44040","published":"2026-07-01T03:33:20Z","modified":"2026-07-09T04:36:05Z","title":"UltraVNC vncauth.c uses time-seeded libc rand() to generate VNC authentication challenge bytes","vendor":"uvnc","product":"UltraVNC","tier":"tail","description":{"text":"UltraVNC through 1.8.2.2 uses a cryptographically weak pseudo-random number generator to produce VNC authentication challenge bytes. In rfb/vncauth.c:119-129, the vncRandomBytes() function seeds libc rand() with time(0) + getpid() + rand() and generates a 16-byte challenge. The combined seed space is approximately 31 bits (libc rand() internal state) and is entirely determined by publicly-observable values (wall-clock time and process ID). An attacker who can observe the authentication exchange can enumerate the seed space and predict the challenge within seconds, enabling forgery or offline brute-forcing of responses. Note: on Windows, the active code path may use vncEncryptBytes2.cpp which calls CryptGenRandom; reachability on shipped Windows binaries requires compile-graph verification and is under investigation.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00397,"percentile":0.34786,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://uvnc.com/","tags":["vendor-advisory"]},{"url":"https://github.com/ultravnc/UltraVNC","tags":["product"]},{"url":"https://www.securin.io/zero-days/cve-2026-44040-libc-rand-weak-rng-vnc-auth-challenge-ultravnc","tags":[]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":6.96},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"uvnc","affectedVersions":[{"vendor":"uvnc","product":"UltraVNC","versions":["<= 1.8.2.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-01T12:44:56.012420Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-40879","exploited":false,"provenance":"source"}}