CVE-2026-7840

CRITICAL

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

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-7840. PoCs published by HermesNA-1.

AI-analyzed exploit summary This repository contains an auto-generated stub module for CVE-2026-7840, a global buffer overflow in UltraVNC repeater's HTTP administration server. The code includes placeholder methods (`check()` and `run()`) but lacks actual exploit implementation or technical details about the vulnerability mechanics.

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.

Exploits (1)

github STUB 1 stars
by HermesNA-1 · pythonpoc
https://github.com/HermesNA-1/SnakeSploit/tree/main/data/modules_generated/cve-2026-7840_ultravnc_repeater_through.py

This repository contains an auto-generated stub module for CVE-2026-7840, a global buffer overflow in UltraVNC repeater's HTTP administration server. The code includes placeholder methods (`check()` and `run()`) but lacks actual exploit implementation or technical details about the vulnerability mechanics.

Classification
Stub 99%
Attack Type
Dos
Complexity
Moderate
Reliability
Theoretical
Target: UltraVNC repeater through 1.8.2.2
No auth needed
Prerequisites: Network access to the UltraVNC repeater's HTTP administration port (default: 80)
mistral-large-3 · analyzed Jul 09, 2026 Full analysis →

References (3)

Core 3
Core References
Vendor Advisory vendor-advisory
UltraVNC project page
https://uvnc.com/
Product product
UltraVNC source repository
https://github.com/ultravnc/UltraVNC

Scores

CVSS v3 9.8
EPSS 0.0158
EPSS Percentile 73.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-787
Status published
Products (2)
uvnc/UltraVNC < 1.8.2.2
uvnc/ultravnc < 1.8.2.2
Published Jul 01, 2026
Tracked Since Jul 01, 2026