UltravncApplication · Uvnc

CVE-2026-7831

HIGH · 7.6 CVSS v3.1 Published 2026-07-01
Fix available
A fix is available. Upgrade to after 1.8.2.2 or later.
See remediation →
83/100
Remediation priority · High
Remotely reachable No privileges

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 · unedited
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.

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 confidence

UltraVNC 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).

MitigationUsers 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.

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
UltravncApplication
Affected:<= 1.8.2.2

CVSS 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 checks

Work through these to decide whether this CVE applies to you.

  1. Locate UltraVNC viewer executable
    Search 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
  2. Determine installed UltraVNC version
    Right-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
  3. Verify vulnerable code path exists
    Inspect 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
  4. Confirm viewer is configured for remote connections
    Check 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 data
Upgrade available Upgrade to a release after 1.8.2.2
Interim mitigation

Users 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.

Fix this in Ultravnc Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing6.0 h
  • Review / QA3.0 h
16.0 hours of engineering $2,760
Get the upgrade done

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-7831 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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