CVE-2026-7838
Last modified
CVE-2026-7838 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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(). EPSS estimates a 1.15% chance of exploitation in the next 30 days.
Description
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).
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Uvnc | Ultravnc | <= 1.8.2.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-7838?
How severe is CVE-2026-7838?
How do I fix CVE-2026-7838?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-7832A security flaw has been discovered in IObit Advanced System…7
- CVE-2026-7833A weakness has been identified in EFM ipTIME C200 up to 1.09…7.3
- CVE-2026-7834A security vulnerability has been detected in EFM ipTIME NAS…9.8
- CVE-2026-7835A format string argument mismatch in Netatalk 3.0.3 through …3.1
- CVE-2026-7836An incorrect calculation in the hextoint macro in Netatalk 2…3.1
- CVE-2026-7837A time-of-check time-of-use (TOCTOU) condition in the ad_flu…3.7
- CVE-2026-7839UltraVNC repeater through 1.8.2.2 initializes the HTTP admin…9.1
- CVE-2026-7840UltraVNC repeater through 1.8.2.2 contains a global buffer o…9.8
- CVE-2026-7841A remote code execution vulnerability exists in Notification…8.8
- CVE-2026-7842The Infility Global Infility Global WordPress plugin before …6.8
- CVE-2026-7844A vulnerability was detected in chatchat-space Langchain-Cha…6.3
- CVE-2026-7845A flaw has been found in chatchat-space Langchain-Chatchat u…2.6
Are you affected by CVE-2026-7838?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
