UltraVNC viewer heap buffer overflow via integer overflow in RFB connection-failure reason length
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-190 and the CVSS impact.
Summary
UltraVNC viewer through 1.8.2.2 contains an integer overflow leading to a heap buffer overflow in the RFB protocol failure-response parsing path. In vncviewer/ClientConnection.cpp, the 4-byte network-supplied reasonLen field (type CARD32) is passed as reasonLen+1 to CheckBufferSize(). Because both operands are unsigned 32-bit, a reasonLen of 0xFFFFFFFF overflows to 0, causing CheckBufferSize to allocate only 256 bytes. The subsequent ReadString(m_netbuf, reasonLen) call then performs ReadExact for the original 4 GiB length into that 256-byte heap buffer. This overflow is reachable via rfbConnFailed (auth-scheme negotiation) and rfbVncAuthFailed (post-handshake) message types without successful authentication. A malicious VNC server, or any man-in-the-middle on the RFB stream, can trigger this condition when the victim viewer connects, potentially resulting in remote code execution as the user running the viewer. The crash was confirmed with AddressSanitizer on a portable reproduction harness (heap-buffer-overflow WRITE at offset 256).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-7838
- 2026-10-03 Alias added: GHSA-wxqv-4fpj-f62j
References
More uvnc Ultravnc vulnerabilities
- TI-2020-19268 UltraVNC Launcher 1.2.4.0 - 'RepeaterHost' Denial of Service CVSS 4.0MEDIUM 6.7
- TI-2026-04323 UltraVNC Service version.dll uncontrolled search path CVSS 4.0HIGH 7.3
- TI-2020-19267 UltraVNC Launcher 1.2.4.0 - 'Password' Denial of Service CVSS 4.0MEDIUM 6.7
- TI-2026-06899 UltraVNC repeater HTTP server global buffer overflow via long URI (pre-auth RCE) CVSS 4.0CRITICAL 9.3
- TI-2019-05946 Heap-based buffer overflow in Kaspersky Lab UltraVNC CVSS 3.1CRITICAL 9.8
- TI-2019-05945 Heap-based buffer overflow in Kaspersky Lab UltraVNC CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-7838 · CVE Program
- CVE-2026-7838 · NVD
- FIRST EPSS
- GHSA-wxqv-4fpj-f62j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences