CRITICAL🇵🇱 Wersja polska

CVE-2026-7840

CVSS 9.3v4.0pub. 2026-07-01upd. 2026-07-09

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.

🤖 AI Analysis
How it works

The functions wi_senderr() and wi_replyhdr() in the file repeater/webgui/webutils.c copy the URI identifier from an HTTP request into a fixed, global buffer hdrbuf of 1000 bytes in size using an unsafe sprintf() call — without checking input length. The HTTP receive buffer accepts URIs up to approximately 150 KB in length (WI_RXBUFSIZE = 153600), so a URI of 1500 bytes or longer causes a buffer overflow of at least 500 bytes, overwriting adjacent global variables in the .bss segment. The overflow occurs before any authentication verification is performed, making the vulnerability accessible without any credentials through the default TCP port 80.

Impact

A remote, unauthenticated attacker can gain arbitrary code execution (RCE) capability on a host running the UltraVNC Repeater process, leading to complete system compromise.

Mitigation & patch

Security patches available from the vendor should be applied according to the references (https://uvnc.com/ and https://github.com/ultravnc/UltraVNC). Until patches are applied, it is recommended to restrict access to the HTTP repeater port (default TCP 80) exclusively to trusted IP addresses using a firewall or ACL rules, and consider disabling the built-in HTTP administrative interface if it is not essential.

Who is affected

UltraVNC Repeater version 1.8.2.2 and earlier

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Uvnc Ultravnc

    APP
    Uvnc
    ≤ 1.8.2.2
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
RCEAuth BypassMemory
CWE
References

Related vulnerabilities

CVE-2026-7839CRITICAL9.1PL ✓same product

UltraVNC Repeater — hardcoded domyślne hasło administratora HTTP

CVE-2019-8268CRITICAL9.8PL ✓same product

UltraVNC: wielokrotne podatności off-by-one umożliwiające RCE

CVE-2019-8264CRITICAL9.8PL ✓same product

UltraVNC: podatność out-of-bounds w dekoderze Ultra2 klienta VNC (RCE)

CVE-2019-8265CRITICAL9.8PL ✓same product

UltraVNC – wielokrotne odczyty/zapisy poza buforem przez makro SETPIXELS

CVE-2019-8266CRITICAL9.8PL ✓same product

UltraVNC: wielokrotny out-of-bounds access umożliwiający RCE w kliencie VNC