GHSA-38w7-mq68-3h8q · Severity: high — UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB...
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 condition by advertising a desktop name of length 2024 in its ServerInit message. On release builds without stack canaries the single-byte NUL overwrite adjacent stack data. On builds with /GS stack protection the canary is corrupted and the process terminates, resulting in denial of service. User interaction (connecting the viewer to the malicious server) is required.
Conclusion & alert: CVE-2026-7831 is rated Moderate Risk (44.8/100): CVSS High severity, with low exploitation likelihood (EPSS 0.53%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-07-09 | 0.42% | 0.53% | +0.11% |
| 2 | 2026-07-01 | — | 0.42% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.6 | 3.1 | HIGH |
|
2.8 | 4.7 | 33c584b5-0579-4c06-b2a0-8d8329fcab9c |
GHSA-38w7-mq68-3h8q · Severity: high — UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB...
| URL | Tags |
|---|---|
| https://github.com/ultravnc/UltraVNC | Product |
| https://uvnc.com/ | Product Release Notes |
| https://www.securin.io/zero-days/cve-2026-7831-off-by-one-stack-overflow-viewer-namelength-ultravnc |