CVE-2026-44040
published medium CVSS 3.1 · 4.8UltraVNC vncauth.c uses time-seeded libc rand() to generate VNC authentication challenge bytes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| uvnc | — | UltraVNC0 through 1.8.2.2 · Other versions: unaffected | Affected | Not stated | securin |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- securin · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| uvnc | UltraVNC | 0 through 1.8.2.2 (affected · custom)Default: unaffected | securin · cna |
Weaknesses
1- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
3- UltraVNC source repository https://github.com/ultravnc/UltraVNC
- UltraVNC project page https://uvnc.com/
- https://www.securin.io/zero-days/cve-2026-44040-libc-rand-weak-rng-vnc-auth-challenge-ultravnc
Provider assertions
2securin · cna
UltraVNC vncauth.c uses time-seeded libc rand() to generate VNC authentication challenge bytes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 59bb835f5124df581c0eac4b41743bd6eef836181f84e3b176df26aaf94d7655
- Ingested
- 23 Sep 2026, 09:14:58 UTC
- Source record
- Official CVE record