Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPosition to observe VNC network traffic
-
DeliveryCapture cleartext RFB 16-byte challenge
-
ExploitRecord wall-clock time and observable process context
-
InstallEnumerate ~31-bit seed space offline
-
C2Reconstruct predicted challenge
-
ExecuteSubmit forged authentication response
-
ImpactGain unauthorized VNC desktop session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Exploitation Conditions | Exploitation requires that the attacker be able to passively observe the VNC RFB authentication exchange over the network - specifically, the 16-byte challenge transmitted in cleartext during the VNC security handshake. The attacker must occupy a network position enabling traffic capture (e.g., same broadcast domain, man-in-the-middle, or network tap). No authentication or prior credentials are required to initiate the VNC connection and observe the challenge. The vulnerability is confirmed in the rfb/vncauth.c code path; on Windows, whether shipped UltraVNC binaries invoke this path or the CryptGenRandom-backed vncEncryptBytes2.cpp is under investigation and cannot be confirmed from available data. Exploitation is limited by: (1) the requirement to capture a live authentication challenge exchange before the seed window expires, (2) the possibility that Windows deployments are unaffected if CryptGenRandom is the active path, and (3) the time-bounded nature of seed enumeration relative to a specific observed timestamp. |
| Impact | The NVD-assigned CVSS vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N scores 4.8 (Medium), with AC:H reflecting the attacker's need to observe the authentication exchange and enumerate the seed space under timing constraints. The C:L/I:L impact scores appear to underestimate actual impact: successful VNC authentication bypass yields full desktop visibility and control, which would more accurately warrant C:H/I:H. No EPSS data was supplied, and the CVE is absent from the CISA KEV catalog, consistent with no confirmed active exploitation. No public exploit code has been identified at time of analysis. However, the 31-bit seed space is enumerable on commodity hardware within seconds, and the attack requires only passive network observation - not active tampering. The most significant risk moderator is the unresolved Windows code path: UltraVNC's primary deployment base is Windows, and if CryptGenRandom is actually invoked in shipped Windows binaries, real-world exploitability may be confined to Linux or non-default build configurations. Risk should be treated as moderate-to-high on confirmed vulnerable platforms pending clarification of the Windows compile graph. |
| Exploit ScenarioDerived | An attacker with visibility into VNC network traffic - via a compromised network segment, ARP spoofing, or a tap - captures the 16-byte RFB challenge transmitted in cleartext during a legitimate VNC login attempt. Using the known seed formula (time(0) + getpid() + rand()), the attacker enumerates approximately 2 billion seed candidates on commodity hardware, reconstructs the nonce, and submits a forged authentication response to establish an unauthorized VNC session. No public exploit code has been identified at time of analysis, but the algorithm is well within reach of any researcher familiar with CWE-338 exploitation techniques. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
UltraVNC through 1.8.2.2 exposes a cryptographically weak VNC authentication challenge generator that an attacker can predict by observing network traffic and enumerating a roughly 31-bit seed space derived from wall-clock time and process ID. Successful seed reconstruction allows the attacker to forge or brute-force valid VNC authentication responses, effectively bypassing the RFB challenge-response mechanism and gaining unauthorized remote desktop access. No public exploit has been identified at time of analysis, and the vulnerability is not currently listed in the CISA KEV catalog; however, the mathematical basis for exploitation is straightforward given the small seed space.
RemediationAI
No vendor-released patch has been identified at time of analysis - the available references point only to the vendor homepage (https://uvnc.com/) and the GitHub repository (https://github.com/ultravnc/UltraVNC) without specifying a fixed release version. Monitor the repository for commits addressing vncRandomBytes() in rfb/vncauth.c. As the primary compensating control, place UltraVNC behind a VPN or SSH tunnel so that the cleartext RFB authentication exchange is not observable by third parties - this directly eliminates the network observation prerequisite encoded in the CVSS AC:H metric. Alternatively, use SSH port forwarding to wrap VNC traffic, preventing passive capture of the challenge-response exchange. Restrict VNC port exposure at the firewall to trusted source IPs only, reducing the attacker's ability to position for traffic observation. Organizations unable to apply network-layer controls should evaluate migration to remote desktop solutions using cryptographically strong authentication (e.g., protocols seeded with OS-level CSPRNG). Each mitigating control trades operational access convenience for reduced exposure; VPN/SSH tunneling is the most robust option with minimal side effects.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is in rfb/vncauth.c lines 119-129, where vncRandomBytes() seeds libc's rand() using time(0) + getpid() + rand(). The combined effective entropy is approximately 31 bits - both seed components (wall-clock seconds and process ID) are publicly observable, reducing the challenge generation to a deterministic, enumerable function. The VNC RFB protocol's security type 2 (VNC Authentication) transmits a 16-byte nonce challenge in cleartext; that nonce is then encrypted with the DES-based VNC password and returned by the client. If the nonce is predictable, the entire challenge-response scheme collapses. CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator) is the precise root cause class - rand() is explicitly not suitable for cryptographic nonce generation. CPE cpe:2.3:a:uvnc:ultravnc:*:*:*:*:*:*:*:* covers all versions through 1.8.2.2. A significant open question per the CVE description is whether shipped Windows binaries actually reach vncauth.c or instead execute vncEncryptBytes2.cpp, which calls CryptGenRandom - a cryptographically secure Windows API - making the Windows code path exposure unconfirmed.
Know when Ultravnc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Successful auth bypass grants full desktop visibility and control (C:H/I:H); AC:H retained because attacker must observe a live challenge exchange to enumerate the seed.
Primary rating from Vendor (securin).
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in UltraVNC Memory Corruption and Cryptographic Flaws
View all 10UltraVNC Launcher 1.2.4.0 contains a denial of service vulnerability in the Repeater Host configuration field that allow
UltraVNC versions up to 1.6.4.0 suffer from an uncontrolled search path vulnerability in version.dll loaded by the Servi
UltraVNC Launcher 1.2.4.0 contains a denial of service vulnerability in its password configuration properties that allow
UltraVNC revision 1203 has out-of-bounds access vulnerability in VNC client inside RAW decoder, which can potentially re
UltraVNC revision 1211 has multiple improper null termination vulnerabilities in VNC server code, which result in out-of
UltraVNC revision 1211 has a heap buffer overflow vulnerability in VNC server code inside file transfer offer handler, w
UltraVNC revision 1211 has a heap buffer overflow vulnerability in VNC server code inside file transfer request handler,
UltraVNC revision 1211 has multiple off-by-one vulnerabilities in VNC server code, which can potentially result in code
UltraVNC revision 1211 has a heap buffer overflow vulnerability in VNC server code inside file transfer handler, which c
UltraVNC revision 1206 has multiple off-by-one vulnerabilities in VNC client code connected with improper usage of Clien
UltraVNC revision 1207 has multiple out-of-bounds access vulnerabilities connected with improper usage of ClientConnecti
UltraVNC revision 1207 has multiple out-of-bounds access vulnerabilities connected with improper usage of SETPIXELS macr
EUVD-2026-40879
GHSA-j37g-g7hg-vhg6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB