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 employs a weak PRNG in the vncRandomBytes() function for generating 16-byte VNC authentication challenges. The function seeds the libc rand() with a combination of time(0), getpid(), and rand(), producing a seed space of approximately 31 bits based on publicly observable values. This predictability allows an attacker who can observe the authentication exchange to enumerate the seed space and predict the challenge bytes within seconds, facilitating forgery or offline brute-force of authentication responses. On Windows, an alternative code path using CryptGenRandom may be present, but its reachability in shipped binaries is under investigation. There is no current official fix or patch disclosed.
Potential Impact
The vulnerability allows attackers who can observe the authentication exchange to predict the VNC authentication challenge due to the weak PRNG seeding. This can lead to forgery of authentication challenges or enable offline brute-force attacks against authentication responses, potentially compromising authentication integrity. The impact is rated as medium with limited confidentiality and integrity impact and no availability impact.
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 additional protective measures such as restricting network access to UltraVNC services and monitoring for suspicious authentication attempts. No vendor advisory or patch links are currently provided.
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 employs a weak PRNG in the vncRandomBytes() function for generating 16-byte VNC authentication challenges. The function seeds the libc rand() with a combination of time(0), getpid(), and rand(), producing a seed space of approximately 31 bits based on publicly observable values. This predictability allows an attacker who can observe the authentication exchange to enumerate the seed space and predict the challenge bytes within seconds, facilitating forgery or offline brute-force of authentication responses. On Windows, an alternative code path using CryptGenRandom may be present, but its reachability in shipped binaries is under investigation. There is no current official fix or patch disclosed.
Potential Impact
The vulnerability allows attackers who can observe the authentication exchange to predict the VNC authentication challenge due to the weak PRNG seeding. This can lead to forgery of authentication challenges or enable offline brute-force attacks against authentication responses, potentially compromising authentication integrity. The impact is rated as medium with limited confidentiality and integrity impact and no availability impact.
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 additional protective measures such as restricting network access to UltraVNC services and monitoring for suspicious authentication attempts. No vendor advisory or patch links are currently provided.
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/08/2026, 12:53:04 UTC
Last updated: 08/15/2026, 03:28:18 UTC
Views: 54
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.