CVE-2026-7840: Out-of-bounds Write in uvnc UltraVNC
UltraVNC repeater versions through 1.8.2.2 contain a critical global buffer overflow vulnerability in the embedded HTTP administration server. The vulnerability arises from unchecked sprintf calls that write a caller-supplied HTTP request URI into a fixed 1000-byte buffer, which can be overflowed by a specially crafted HTTP request URI of 1500 bytes or longer. This overflow occurs before any authentication checks, allowing unauthenticated remote attackers to corrupt memory and potentially execute arbitrary code on the host running the repeater.
AI Analysis
Technical Summary
CVE-2026-7840 is a critical buffer overflow vulnerability in UltraVNC repeater's embedded HTTP administration server (up to version 1.8.2.2). The functions wi_senderr() and wi_replyhdr() write the HTTP request URI into a fixed-size 1000-byte global buffer (hdrbuf) using unchecked sprintf calls. Since the HTTP receive buffer accepts URIs up to approximately 150 KB, an attacker can send a single HTTP request with a URI of 1500 bytes or more to overflow hdrbuf by at least 500 bytes, corrupting adjacent .bss-segment globals. This overflow happens before any authentication, enabling unauthenticated remote code execution on the repeater host.
Potential Impact
A remote unauthenticated attacker who can access the repeater's HTTP port (default TCP 80) can exploit this vulnerability to cause a buffer overflow, leading to memory corruption and potentially arbitrary code execution on the affected system. This compromises the confidentiality, integrity, and availability of the host running the UltraVNC repeater.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the UltraVNC repeater HTTP administration port to trusted networks only to prevent unauthenticated remote exploitation.
CVE-2026-7840: Out-of-bounds Write in uvnc UltraVNC
Description
UltraVNC repeater versions through 1.8.2.2 contain a critical global buffer overflow vulnerability in the embedded HTTP administration server. The vulnerability arises from unchecked sprintf calls that write a caller-supplied HTTP request URI into a fixed 1000-byte buffer, which can be overflowed by a specially crafted HTTP request URI of 1500 bytes or longer. This overflow occurs before any authentication checks, allowing unauthenticated remote attackers to corrupt memory and potentially execute arbitrary code on the host running the repeater.
CVSS v4.0
Score 9.3critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-7840 is a critical buffer overflow vulnerability in UltraVNC repeater's embedded HTTP administration server (up to version 1.8.2.2). The functions wi_senderr() and wi_replyhdr() write the HTTP request URI into a fixed-size 1000-byte global buffer (hdrbuf) using unchecked sprintf calls. Since the HTTP receive buffer accepts URIs up to approximately 150 KB, an attacker can send a single HTTP request with a URI of 1500 bytes or more to overflow hdrbuf by at least 500 bytes, corrupting adjacent .bss-segment globals. This overflow happens before any authentication, enabling unauthenticated remote code execution on the repeater host.
Potential Impact
A remote unauthenticated attacker who can access the repeater's HTTP port (default TCP 80) can exploit this vulnerability to cause a buffer overflow, leading to memory corruption and potentially arbitrary code execution on the affected system. This compromises the confidentiality, integrity, and availability of the host running the UltraVNC repeater.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the UltraVNC repeater HTTP administration port to trusted networks only to prevent unauthenticated remote exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- securin
- Date Reserved
- 2026-05-05T07:30:59.460Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a44a07b27e9c79719fbd78b
Added to database: 07/01/2026, 05:07:07 UTC
Last enriched: 07/01/2026, 05:21:16 UTC
Last updated: 07/01/2026, 08:56:49 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.