UltravncApplication · Uvnc

CVE-2026-7838

HIGH · 8.8 CVSS v3.1 Published 2026-07-01
Fix available
A fix is available. Upgrade to after 1.8.2.2 or later.
See remediation →
95/100
Remediation priority · Urgent
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 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).

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

Integer overflow in UltraVNC viewer 1.8.2.2 allows a malicious VNC server to trigger a heap buffer overflow. The 4-byte reasonLen field from the network is used directly in reasonLen+1 passed to CheckBufferSize(); when reasonLen is 0xFFFFFFFF, unsigned overflow yields 0, allocating only 256 bytes. ReadString then writes up to 4GB into this small buffer, causing heap overflow and potential RCE.

MitigationApply bounds checking on reasonLen before buffer allocation; reject or truncate excessively large values. If a patch is unavailable from the vendor, consider restricting VNC connections to trusted servers only until the vulnerability is fixed.

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
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/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. Identify UltraVNC viewer installation
    Check common installation paths: C:\Program Files\UltraVNC\ for Windows, or look for vncviewer.exe in system PATH. Run 'vncviewer --version' or check file properties of vncviewer.exe for version info.
    Affected if UltraVNC viewer is installed and version is 1.8.2.2 or lower.
  2. Confirm installed version against affected range
    Compare the discovered version number to the affected range: any version <= 1.8.2.2 is vulnerable. Check the 'Product version' in file properties or output of 'vncviewer --version'.
    Affected if The installed version is 1.8.2.2 or any earlier version.
  3. Determine if viewer is actively used or configured
    Check for running vncviewer processes via Task Manager or 'tasklist | findstr vnc', and check for saved connection configurations in the UltraVNC folder or registry under HKLM\SOFTWARE\UltraVNC or HKCU\SOFTWARE\UltraVNC.
    Affected if UltraVNC viewer is installed at vulnerable version and configured to connect to VNC servers.
  4. Assess exposure to untrusted VNC servers
    Review saved VNC server addresses in UltraVNC connections, recent connection history, or scan for .vnc files. Identify if connections are made to external/untrusted networks where a malicious server could be encountered.
    Affected if The viewer at vulnerable version is used to connect to servers outside a trusted internal network.

You are affected if UltraVNC viewer version 1.8.2.2 or lower is installed and is used or configured to connect to VNC servers, particularly untrusted or external ones.

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.

dbcve · scoped
Upgrade available Upgrade to a release after 1.8.2.2
Interim mitigation

Apply bounds checking on reasonLen before buffer allocation; reject or truncate excessively large values. If a patch is unavailable from the vendor, consider restricting VNC connections to trusted servers only until the vulnerability is fixed.

Recommended fix Moderate confidence

UltraVNC Viewer 1.8.2.4 or later (check GitHub releases for latest)

  1. 1. Navigate to the official UltraVNC download page at www.uvnc.com or the GitHub repository (github.com/ultravnc/ultravnc)
  2. 2. Download the latest stable version of UltraVNC viewer (currently version 1.8.2.4 or later)
  3. 3. Uninstall the current version of UltraVNC viewer from the system
  4. 4. Install the newly downloaded version by running the installer executable
  5. 5. Verify the installed version by opening the viewer and checking Help > About UltraVNC Viewer
Caveat Newer versions may have UI changes; ensure compatibility with your VNC server versions

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Ultravnc Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing3.0 h
  • Review / QA1.0 h
9.0 hours of engineering $1,570
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,512.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-7838 — 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-7838 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