CVE-2026-7838
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 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 confidenceInteger 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.
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
- 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 checksWork through these to decide whether this CVE applies to you.
-
Identify UltraVNC viewer installationCheck 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.
-
Confirm installed version against affected rangeCompare 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.
-
Determine if viewer is actively used or configuredCheck 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.
-
Assess exposure to untrusted VNC serversReview 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.
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 · scopedApply 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.
UltraVNC Viewer 1.8.2.4 or later (check GitHub releases for latest)
- 1. Navigate to the official UltraVNC download page at www.uvnc.com or the GitHub repository (github.com/ultravnc/ultravnc)
- 2. Download the latest stable version of UltraVNC viewer (currently version 1.8.2.4 or later)
- 3. Uninstall the current version of UltraVNC viewer from the system
- 4. Install the newly downloaded version by running the installer executable
- 5. Verify the installed version by opening the viewer and checking Help > About UltraVNC Viewer
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing3.0 h
- Review / QA1.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-7838 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