CVE-2026-7840 Details
Description
UltraVNC repeater through 1.8.2.2 contains a global buffer overflow in its embedded HTTP administration server. The functions wi_senderr() and wi_replyhdr() 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 (WI_RXBUFSIZE = 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.
A global buffer overflow vulnerability has been identified in the UltraVNC repeater, in versions through 1.8.2.2. The issue resides in the embedded HTTP administration server, specifically within the functions wi_senderr() and wi_replyhdr() in the file webutils.c. These functions write the caller-supplied HTTP request URI into a fixed 1000-byte global buffer using unchecked sprintf calls. The HTTP receive buffer can accept URIs up to approximately 150 KB, allowing an unauthenticated attacker who can access the repeater HTTP port (default TCP 80) to overflow the global buffer by at least 500 bytes with a single HTTP request containing a URI of 1500 bytes or longer. This overflow corrupts adjacent .bss-segment globals and occurs before any authentication check, making it reachable without credentials. As a result, a remote, unauthenticated attacker can execute arbitrary code on the host running the repeater.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ultravnc/UltraVNC | securin | Product |
| https://uvnc.com/ | securin | Product |
| https://www.securin.io/zero-days/cve-2026-7840-pre-auth-global-buffer-overflow-repeater-http-admin-ultravnc | securin |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | securin |
Affected Products
| Product | Versions |
|---|---|
| uvnc ultravnc | <= 1.8.2.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | CVE Modified | securin |
| Jul 9, 2026 | Initial Analysis | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jul 1, 2026 | New CVE Received | securin |