CVE-2026-44040: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in uvnc UltraVNC
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.
AI Analysis
Technical Summary
UltraVNC through version 1.8.2.2 uses a weak PRNG for generating VNC authentication challenges. The vncRandomBytes() function seeds the libc rand() function with a combination of time(0), getpid(), and rand(), resulting in a combined seed space of approximately 31 bits. Because these seed values are publicly observable or guessable, an attacker can enumerate the seed space and predict the 16-byte challenge within seconds. This predictability undermines the security of the VNC authentication mechanism, allowing potential forgery or offline brute-force attacks on authentication responses. On Windows, an alternative code path using CryptGenRandom may be present, but its reachability in shipped binaries is under investigation. No vendor advisory or patch is currently available.
Potential Impact
The vulnerability allows an attacker who can observe the VNC authentication exchange to predict the authentication challenge bytes due to the weak PRNG seeding. This can enable forgery of authentication challenges or offline brute-force attacks against authentication responses, potentially compromising authentication integrity. The impact is limited to confidentiality and integrity with no reported impact on availability. The CVSS score of 4.8 reflects a medium severity with network attack vector, high attack complexity, no privileges required, and no user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider alternative secure VNC solutions or additional network-level protections such as VPNs or strong access controls to mitigate exposure. Avoid relying solely on UltraVNC authentication in environments where an attacker can observe authentication exchanges.
CVE-2026-44040: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in uvnc UltraVNC
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.
CVSS v3.1
Score 4.8medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
UltraVNC through version 1.8.2.2 uses a weak PRNG for generating VNC authentication challenges. The vncRandomBytes() function seeds the libc rand() function with a combination of time(0), getpid(), and rand(), resulting in a combined seed space of approximately 31 bits. Because these seed values are publicly observable or guessable, an attacker can enumerate the seed space and predict the 16-byte challenge within seconds. This predictability undermines the security of the VNC authentication mechanism, allowing potential forgery or offline brute-force attacks on authentication responses. On Windows, an alternative code path using CryptGenRandom may be present, but its reachability in shipped binaries is under investigation. No vendor advisory or patch is currently available.
Potential Impact
The vulnerability allows an attacker who can observe the VNC authentication exchange to predict the authentication challenge bytes due to the weak PRNG seeding. This can enable forgery of authentication challenges or offline brute-force attacks against authentication responses, potentially compromising authentication integrity. The impact is limited to confidentiality and integrity with no reported impact on availability. The CVSS score of 4.8 reflects a medium severity with network attack vector, high attack complexity, no privileges required, and no user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider alternative secure VNC solutions or additional network-level protections such as VPNs or strong access controls to mitigate exposure. Avoid relying solely on UltraVNC authentication in environments where an attacker can observe authentication exchanges.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- securin
- Date Reserved
- 2026-05-05T03:40:37.003Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a44a07827e9c79719fbd5b8
Added to database: 07/01/2026, 05:07:04 UTC
Last enriched: 07/01/2026, 05:22:55 UTC
Last updated: 07/01/2026, 21:35:28 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.