CVE-2026-7831
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedUltraVNC 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceUltraVNC viewer through 1.8.2.2 has an off-by-one stack buffer overflow in the RFB ServerInit message handler in vncviewer/ClientConnection.cpp. When a malicious VNC server advertises a desktop name length of exactly 2024 bytes, the code allocates a 2024-byte stack buffer _dn[2024] and calls ReadString(_dn, 2024), which writes the NUL terminator one byte past the buffer end at _dn[2024]. On builds without stack canaries this corrupts adjacent stack data; with /GS stack protection the canary corruption causes immediate process termination (DoS).
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 1.8.2.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate UltraVNC viewer executableSearch for vncviewer.exe in common installation directories such as C:\Program Files\UltraVNC\ or C:\Program Files (x86)\UltraVNC\, or use the system search feature to find the executable.Affected if vncviewer.exe exists on the system
-
Determine installed UltraVNC versionRight-click on vncviewer.exe, select Properties, and check the File version field on the Details tab. Alternatively, open the executable and look for the version information displayed in the application.Affected if The reported version is 1.8.2.2 or any version lower than 1.8.2.2
-
Verify vulnerable code path existsInspect the installed vncviewer.exe file for the presence of the ClientConnection.cpp compiled binary. This check confirms the viewer component that handles the RFB ServerInit message is present.Affected if The vncviewer executable is the viewer component from UltraVNC versions 1.8.2.2 or earlier
-
Confirm viewer is configured for remote connectionsCheck if the UltraVNC viewer has been used or configured to connect to VNC servers. Look for saved connection configurations or recent connection history in the application settings or registry.Affected if The viewer is capable of initiating outbound VNC connections to servers
The system is affected if UltraVNC viewer version 1.8.2.2 or earlier is installed and the viewer is used to connect to VNC servers, as the off-by-one overflow triggers when a malicious server sends a desktop name of exactly 2024 bytes.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataUsers should avoid connecting to untrusted or unknown VNC servers. Organizations should update to the patched UltraVNC version when available and consider network segmentation to limit exposure to malicious VNC servers.
- Consultation3.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,416.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-7831 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-7831 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data