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 implements the MS-Logon II authentication scheme using a Diffie-Hellman key exchange with parameters limited to 64 bits, controlled by DH_MAX_BITS. Such a small key size is vulnerable to rapid discrete logarithm attacks like Pollard's rho algorithm, enabling key recovery in under a second on modern hardware. Additionally, the private exponent is generated using a weak random number generator seeded by time(NULL) and based on libc rand(), resulting in approximately 31 bits of entropy. This makes the private exponent recoverable within a minute by a passive attacker. Consequently, an attacker who can sniff or intercept the MS-Logon II handshake can derive the shared DH key and decrypt the encapsulated username and password, leading to full credential disclosure. The vulnerability affects only the legacy MS-Logon II scheme; the newer MS-Logon III scheme using X25519 and AES-256-GCM is not impacted. No official remediation or patch information is provided.
Potential Impact
An attacker capable of passively observing the MS-Logon II handshake can recover the shared Diffie-Hellman key due to weak cryptographic parameters and poor random number generation. This enables decryption of usernames and passwords transmitted during authentication, resulting in full credential disclosure. The vulnerability does not affect availability or integrity but compromises confidentiality of credentials. MS-Logon III connections remain secure.
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 and prefer MS-Logon III, which uses stronger cryptography (X25519 and AES-256-GCM). Network defenders should consider disabling or restricting MS-Logon II usage to mitigate credential exposure risk.
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 implements the MS-Logon II authentication scheme using a Diffie-Hellman key exchange with parameters limited to 64 bits, controlled by DH_MAX_BITS. Such a small key size is vulnerable to rapid discrete logarithm attacks like Pollard's rho algorithm, enabling key recovery in under a second on modern hardware. Additionally, the private exponent is generated using a weak random number generator seeded by time(NULL) and based on libc rand(), resulting in approximately 31 bits of entropy. This makes the private exponent recoverable within a minute by a passive attacker. Consequently, an attacker who can sniff or intercept the MS-Logon II handshake can derive the shared DH key and decrypt the encapsulated username and password, leading to full credential disclosure. The vulnerability affects only the legacy MS-Logon II scheme; the newer MS-Logon III scheme using X25519 and AES-256-GCM is not impacted. No official remediation or patch information is provided.
Potential Impact
An attacker capable of passively observing the MS-Logon II handshake can recover the shared Diffie-Hellman key due to weak cryptographic parameters and poor random number generation. This enables decryption of usernames and passwords transmitted during authentication, resulting in full credential disclosure. The vulnerability does not affect availability or integrity but compromises confidentiality of credentials. MS-Logon III connections remain secure.
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 and prefer MS-Logon III, which uses stronger cryptography (X25519 and AES-256-GCM). Network defenders should consider disabling or restricting MS-Logon II usage to mitigate credential exposure risk.
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/01/2026, 05:21:46 UTC
Last updated: 07/01/2026, 21:36:01 UTC
Views: 11
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.