CVE-2026-7840
Modified Modified - Updated After Analysis

UltraVNC Repeater HTTP Server Buffer Overflow

Vulnerability report for CVE-2026-7840, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-01

Last updated on: 2026-07-09

Assigner: securin

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-01
Last Modified
2026-07-09
Generated
2026-07-21
AI Q&A
2026-07-01
EPSS Evaluated
2026-07-20
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
uvnc ultravnc to 1.8.2.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in UltraVNC repeater versions up to 1.8.2.2 in its embedded HTTP administration server. Specifically, the functions wi_senderr() and wi_replyhdr() write the HTTP request URI into a fixed-size 1000-byte global buffer without proper bounds checking. Since the HTTP receive buffer can accept URIs up to approximately 150 KB, an attacker can send a specially crafted HTTP request with a URI longer than 1500 bytes to overflow this buffer by at least 500 bytes.

The overflow corrupts adjacent global variables in memory before any authentication check is performed, allowing a remote, unauthenticated attacker who can reach the repeater's HTTP port (default TCP 80) to execute arbitrary code on the host running the repeater.

Detection Guidance

This vulnerability involves a buffer overflow in the UltraVNC repeater's embedded HTTP administration server, which listens on the default TCP port 80. Detection can focus on monitoring HTTP requests to this port for unusually long URI strings (1500 bytes or longer) that could trigger the overflow.

You can detect potential exploitation attempts by capturing and analyzing network traffic targeting the UltraVNC repeater HTTP port. For example, using tcpdump or Wireshark to filter HTTP requests with long URIs.

  • Use tcpdump to capture HTTP requests on port 80: tcpdump -i <interface> 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) > 1500)'
  • Use Wireshark to filter HTTP requests with long URIs by applying a display filter for HTTP requests and inspecting the URI length manually.

Additionally, scanning the system for the presence of UltraVNC repeater versions up to 1.8.2.2 can help identify vulnerable hosts.

Impact Analysis

This vulnerability can have severe impacts including complete compromise of the affected system. Because it allows remote, unauthenticated attackers to execute arbitrary code, an attacker could gain full control over the host running the UltraVNC repeater.

  • Unauthorized access to sensitive data or system resources.
  • Potential disruption or denial of service by crashing the application or system.
  • Use of the compromised system as a foothold for further attacks within the network.
Compliance Impact

The vulnerability in UltraVNC repeater allows unauthenticated remote attackers to execute arbitrary code on the host system by exploiting a global buffer overflow in the embedded HTTP administration server. This can lead to unauthorized access and potential compromise of sensitive data.

Such a security flaw can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of personal and sensitive data against unauthorized access and breaches.

If exploited, this vulnerability could result in data breaches or unauthorized control over systems handling protected information, thereby violating requirements for data confidentiality, integrity, and availability mandated by these regulations.

Mitigation Strategies

Immediate mitigation steps include restricting access to the UltraVNC repeater HTTP administration port (default TCP 80) to trusted networks only, such as by using firewall rules or network segmentation.

Disabling or blocking the HTTP administration server if it is not required can prevent exploitation.

Updating UltraVNC repeater to a version later than 1.8.2.2 that addresses this buffer overflow vulnerability is recommended once a patch is available.

Monitoring logs and network traffic for suspicious HTTP requests with abnormally long URIs can help detect exploitation attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-7840. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart