CVE-2026-7830: Inadequate Encryption Strength in uvnc UltraVNC
UltraVNC through 1.8.2.2 uses inadequate cryptography in the MS-Logon II authentication scheme (rfbUltraVNC_MsLogonIIAuth). In rfb/dh.cpp the Diffie-Hellman key exchange is performed with parameters that fit in an unsigned 64-bit integer (DH_MAX_BITS controls the prime size). A 64-bit DH key can be broken by Pollard's rho algorithm in under one second on current hardware. Additionally, the private exponent is generated by the rng() function, which multiplies three libc rand() values seeded from time(NULL). With approximately 31 bits of internal state and a time-based seed, the private exponent is recoverable in under a minute by a passive observer. A network attacker who can observe the MS-Logon II handshake (via sniffing, recording, or man-in-the-middle) can derive the shared DH key and decrypt the encapsulated username and password, resulting in full credential disclosure. This affects legacy MS-Logon II connections; MS-Logon III (X25519 + AES-256-GCM) is unaffected.
AI Analysis
Technical Summary
UltraVNC through version 1.8.2.2 employs an insecure Diffie-Hellman key exchange in its MS-Logon II authentication scheme, using a 64-bit prime size controlled by DH_MAX_BITS, which is vulnerable to rapid discrete logarithm attacks such as Pollard's rho. Additionally, the private exponent is generated using a weak RNG seeded by time(NULL) and based on libc rand(), resulting in only about 31 bits of entropy. These factors enable a passive network attacker who observes the handshake to recover the shared DH key and decrypt the encapsulated username and password, leading to full credential disclosure. The vulnerability is limited to legacy MS-Logon II connections; MS-Logon III, which uses X25519 and AES-256-GCM, is not affected. No vendor advisory or patch information is available at this time.
Potential Impact
An attacker capable of passively observing the MS-Logon II handshake can derive the shared Diffie-Hellman key and decrypt sensitive authentication credentials (username and password). This results in full credential disclosure without requiring active interaction or elevated privileges. The confidentiality and integrity of the authentication process are compromised. There is no indication of impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the legacy MS-Logon II authentication scheme in UltraVNC. Prefer MS-Logon III authentication, which uses stronger cryptographic algorithms (X25519 and AES-256-GCM) and is not affected by this vulnerability.
CVE-2026-7830: Inadequate Encryption Strength in uvnc UltraVNC
Description
UltraVNC through 1.8.2.2 uses inadequate cryptography in the MS-Logon II authentication scheme (rfbUltraVNC_MsLogonIIAuth). In rfb/dh.cpp the Diffie-Hellman key exchange is performed with parameters that fit in an unsigned 64-bit integer (DH_MAX_BITS controls the prime size). A 64-bit DH key can be broken by Pollard's rho algorithm in under one second on current hardware. Additionally, the private exponent is generated by the rng() function, which multiplies three libc rand() values seeded from time(NULL). With approximately 31 bits of internal state and a time-based seed, the private exponent is recoverable in under a minute by a passive observer. A network attacker who can observe the MS-Logon II handshake (via sniffing, recording, or man-in-the-middle) can derive the shared DH key and decrypt the encapsulated username and password, resulting in full credential disclosure. This affects legacy MS-Logon II connections; MS-Logon III (X25519 + AES-256-GCM) is unaffected.
CVSS v3.1
Score 7.4high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
UltraVNC through version 1.8.2.2 employs an insecure Diffie-Hellman key exchange in its MS-Logon II authentication scheme, using a 64-bit prime size controlled by DH_MAX_BITS, which is vulnerable to rapid discrete logarithm attacks such as Pollard's rho. Additionally, the private exponent is generated using a weak RNG seeded by time(NULL) and based on libc rand(), resulting in only about 31 bits of entropy. These factors enable a passive network attacker who observes the handshake to recover the shared DH key and decrypt the encapsulated username and password, leading to full credential disclosure. The vulnerability is limited to legacy MS-Logon II connections; MS-Logon III, which uses X25519 and AES-256-GCM, is not affected. No vendor advisory or patch information is available at this time.
Potential Impact
An attacker capable of passively observing the MS-Logon II handshake can derive the shared Diffie-Hellman key and decrypt sensitive authentication credentials (username and password). This results in full credential disclosure without requiring active interaction or elevated privileges. The confidentiality and integrity of the authentication process are compromised. There is no indication of impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the legacy MS-Logon II authentication scheme in UltraVNC. Prefer MS-Logon III authentication, which uses stronger cryptographic algorithms (X25519 and AES-256-GCM) and is not affected by this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- securin
- Date Reserved
- 2026-05-05T03:40:59.002Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a44a07a27e9c79719fbd73a
Added to database: 07/01/2026, 05:07:06 UTC
Last enriched: 07/08/2026, 12:54:35 UTC
Last updated: 08/16/2026, 00:41:15 UTC
Views: 79
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.