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.87% 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
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-78374Joomla Extension - joomlart.com - Open mail relay via contac…6.9
- CVE-2026-78375Joomla Extension - joomshaper.com - Authenticated Privileged…8.6
- CVE-2026-78376A flaw was found in WebKitGTK. Processing malicious web cont…8.8
- CVE-2026-78377URL redirection to untrusted site ('open redirect') vulnerab…6.1
- CVE-2026-78378Ransomlook contains a Redis glob pattern injection vulnerabi…6.9
- CVE-2026-78379Improper neutralization of input used for LLM prompting in t…8.1
- CVE-2026-78380RansomLook fails to enforce the privacy status of ransomware…8.7
- CVE-2026-78381RansomLook contains a path traversal vulnerability in the ha…8.2
- CVE-2026-78383Allocation of resources without limits or throttling vulnera…7.5
- CVE-2026-78384CompressionUtils.inflate() decompressed attacker-controlled …7.5
- CVE-2026-78385RansomLook contains insufficient resource validation in the …8.2
- CVE-2026-78386RansomLook exposed sensitive operator-side scraping configur…8.7
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
