Skip to main content

UltraVNC CVE-2026-44040

| EUVDEUVD-2026-40879 MEDIUM
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-07-01 securin GHSA-j37g-g7hg-vhg6
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Position to observe VNC network traffic
  2. Delivery
    Capture cleartext RFB 16-byte challenge
  3. Exploit
    Record wall-clock time and observable process context
  4. Install
    Enumerate ~31-bit seed space offline
  5. C2
    Reconstruct predicted challenge
  6. Execute
    Submit forged authentication response
  7. Impact
    Gain 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

UltraVNC 0 ≤1.8.2.2

Affected Packages

euvd ultravnc no fix

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

Vendor (securin) PRIMARY MEDIUM
NVD 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (securin).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Jul 02, 2026 - 16:37 NVD
4.8 (MEDIUM) 6.5 (MEDIUM)
CVE Published
Jul 01, 2026 - 03:33 cve.org
MEDIUM 4.8

DescriptionNVD

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular open-source VNC server with broad Windows/Linux hobbyist and SMB deployment
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2020-37133 HIGH POC
7.5 Feb 05

UltraVNC Launcher 1.2.4.0 contains a denial of service vulnerability in the Repeater Host configuration field that allow

CVE-2026-4962 MEDIUM POC
6.4 Mar 27

UltraVNC versions up to 1.6.4.0 suffer from an uncontrolled search path vulnerability in version.dll loaded by the Servi

CVE-2020-37132 MEDIUM POC
6.2 Feb 05

UltraVNC Launcher 1.2.4.0 contains a denial of service vulnerability in its password configuration properties that allow

CVE-2019-8280 CRITICAL
9.8 Mar 08

UltraVNC revision 1203 has out-of-bounds access vulnerability in VNC client inside RAW decoder, which can potentially re

CVE-2019-8275 CRITICAL
9.8 Mar 08

UltraVNC revision 1211 has multiple improper null termination vulnerabilities in VNC server code, which result in out-of

CVE-2019-8274 CRITICAL
9.8 Mar 08

UltraVNC revision 1211 has a heap buffer overflow vulnerability in VNC server code inside file transfer offer handler, w

CVE-2019-8273 CRITICAL
9.8 Mar 08

UltraVNC revision 1211 has a heap buffer overflow vulnerability in VNC server code inside file transfer request handler,

CVE-2019-8272 CRITICAL
9.8 Mar 08

UltraVNC revision 1211 has multiple off-by-one vulnerabilities in VNC server code, which can potentially result in code

CVE-2019-8271 CRITICAL
9.8 Mar 08

UltraVNC revision 1211 has a heap buffer overflow vulnerability in VNC server code inside file transfer handler, which c

CVE-2019-8268 CRITICAL
9.8 Mar 08

UltraVNC revision 1206 has multiple off-by-one vulnerabilities in VNC client code connected with improper usage of Clien

CVE-2019-8266 CRITICAL
9.8 Mar 08

UltraVNC revision 1207 has multiple out-of-bounds access vulnerabilities connected with improper usage of ClientConnecti

CVE-2019-8265 CRITICAL
9.8 Mar 08

UltraVNC revision 1207 has multiple out-of-bounds access vulnerabilities connected with improper usage of SETPIXELS macr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy