CVE-2026-7831: UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB ServerInit message han
CVE-2026-7831 is a high-severity flaw (CVSS 7.6) affecting ultravnc. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB ServerInit message handler. In vncviewer/ClientConnection.cpp, when the server-supplied nameLength equals exactly 2024 the code declares a 2024-byte stack buffer _dn[2024] and calls ReadString(_dn, 2024). ReadString writes the NUL terminator at buf[length], i.e., _dn[2024], one byte past the end of the stack buffer. A malicious VNC server can trigger this cond
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-7831?
ultravnc: upgrade to newer than 1.8.2.2. Exact commands for each OS are on this page.
Is CVE-2026-7831 being exploited?
CVE-2026-7831 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-7831 affect?
CVE-2026-7831 affects ultravnc. Severity is high (CVSS 7.6). UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB ServerInit message handler. In vncviewer/ClientConnection.cpp, when the server-supplied nameLength equals exactly 2024 the code declares a 2024-byte sta
How urgent is CVE-2026-7831?
Priority 40/100. High severity
Related CVEs
- CVE-2026-7840 CRITICAL 9.8 UPGRADE UltraVNC repeater through 1.8.2.2 contains a global buffer overflow in its embedded HTTP administration server
- CVE-2026-7838 HIGH 8.8 UPGRADE UltraVNC viewer through 1.8.2.2 contains an integer overflow leading to a heap buffer overflow in the RFB prot
- CVE-2026-7839 CRITICAL 9.1 UPGRADE UltraVNC repeater through 1.8.2.2 initializes the HTTP administration server with a hardcoded default password
- CVE-2026-7828 MEDIUM 5.3 UPGRADE UltraVNC repeater through 1.8.2.2 contains an integer overflow in the HTTP request logging path
- CVE-2026-7829 HIGH 7.2 UPGRADE UltraVNC repeater through 1.8.2.2 contains a post-authentication out-of-bounds write in the allow/deny rule pa