CVE-2026-7840: UltraVNC repeater HTTP server global buffer overflow via long URI (pre-auth RCE)

Published Jul 1, 2026
·
Updated

UltraVNC repeater through 1.8.2.2 contains a global buffer overflow in its embedded HTTP administration server. The functions wisenderr() and wireplyhdr() in repeater/webgui/webutils.c write the caller-supplied HTTP request URI into a fixed 1000-byte global buffer (hdrbuf) via unchecked sprintf calls. The HTTP receive buffer accepts URIs up to approximately 150 KB (WIRXBUFSIZE = 153600), so an unauthenticated attacker who can reach the repeater HTTP port (default TCP 80) can overflow hdrbuf by at least 500 bytes with a single HTTP request containing a URI of 1500 bytes or longer, corrupting adjacent .bss-segment globals. The overflow occurs before any authentication check, making it reachable without credentials. A remote, unauthenticated attacker can achieve arbitrary code execution on the host running the repeater.

Affected Software

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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade UltraVNC repeater (embedded HTTP administration server) 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-7840?

CVE-2026-7840 has a severity rating of 9.8, classified as critical.

2

How do I fix CVE-2026-7840?

To mitigate CVE-2026-7840, upgrade UltraVNC to the latest version that addresses the buffer overflow vulnerability.

3

What does CVE-2026-7840 affect?

CVE-2026-7840 affects the UltraVNC Repeater version 1.8.2.2, specifically its embedded HTTP administration server.

4

What type of vulnerability is CVE-2026-7840?

CVE-2026-7840 is a buffer overflow vulnerability that can lead to remote code execution.

5

What are the potential impacts of CVE-2026-7840?

Exploitation of CVE-2026-7840 can result in unauthorized access and control over affected systems due to remote code execution.

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