CVE-2026-7840: Out-of-bounds Write in uvnc UltraVNC
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
Technical Summary
CVE-2026-7840 is a critical buffer overflow vulnerability in UltraVNC repeater through version 1.8.2.2. The embedded HTTP administration server uses a fixed 1000-byte global buffer (hdrbuf) for HTTP request URIs, but the HTTP receive buffer accepts URIs up to approximately 150 KB. The functions wi_senderr() and wi_replyhdr() write the URI into hdrbuf using unchecked sprintf calls, enabling an attacker to overflow hdrbuf 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, allowing unauthenticated remote code execution on the repeater host.
Potential Impact
An unauthenticated remote attacker who can reach the repeater's HTTP port (default TCP 80) can exploit this vulnerability to cause a global buffer overflow, leading to corruption of memory adjacent to the buffer. This can result in arbitrary code execution on the host running the UltraVNC repeater, potentially compromising the system completely.
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 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 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 through version 1.8.2.2. The embedded HTTP administration server uses a fixed 1000-byte global buffer (hdrbuf) for HTTP request URIs, but the HTTP receive buffer accepts URIs up to approximately 150 KB. The functions wi_senderr() and wi_replyhdr() write the URI into hdrbuf using unchecked sprintf calls, enabling an attacker to overflow hdrbuf 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, allowing unauthenticated remote code execution on the repeater host.
Potential Impact
An unauthenticated remote attacker who can reach the repeater's HTTP port (default TCP 80) can exploit this vulnerability to cause a global buffer overflow, leading to corruption of memory adjacent to the buffer. This can result in arbitrary code execution on the host running the UltraVNC repeater, potentially compromising the system completely.
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/08/2026, 13:02:41 UTC
Last updated: 08/15/2026, 12:41:11 UTC
Views: 235
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.