CVE-2026-44040: UltraVNC vncauth.c uses time-seeded libc rand() to generate VNC authentication challenge bytes

Published Jul 1, 2026
·
Updated

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.

Affected Software

2 affected components
UltraVNC UltraVNC<=1.8.2.2
Uvnc Ultravnc<=1.8.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade UltraVNC to a version that resolves this vulnerability.

    Fixed in 1.8.2.2

Event History

Jul 1, 2026
CVE Published
via MITRE·03:33 AM
Data Sourced
via MITRE·03:33 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-44040?

CVE-2026-44040 has a medium severity rating of 6.5.

2

How do I fix CVE-2026-44040?

To fix CVE-2026-44040, upgrade to the latest version of UltraVNC where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-44040?

CVE-2026-44040 is classified as a weakness in the random number generator used for VNC authentication.

4

Which versions of UltraVNC are affected by CVE-2026-44040?

All versions of UltraVNC up to 1.8.2.2 are affected by CVE-2026-44040.

5

What impact does CVE-2026-44040 have on VNC authentication?

CVE-2026-44040 can lead to predictability in VNC authentication challenge bytes, making it easier for an attacker to compromise authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203