highCVE-2026-7831

CVE-2026-7831 UltraVNC Viewer Off-by-One Stack Overflow

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.

ProductUltraVNC Viewer
CVSS7.6
EPSS0.00525
UpdatedJuly 15, 2026

Quick answer

UltraVNC Viewer should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • <= 1.8.2.2

Fixed versions

  • No vendor fix published yet

How to fix it

UltraVNC Viewer is affected and no public fixed version is listed in the local advisory data yet. Reduce access, disable risky features where possible, and apply the vendor fix when it is released.

  1. Check where UltraVNC Viewer is installed and whether it is reachable from the internet.
  2. Limit access to trusted users, trusted networks, or a VPN until a vendor fix is available.
  3. Disable the affected feature or module if the advisory points to a specific upload, login, admin, chat, or network service path.
  4. Watch the vendor or advisory source and apply the first supported fix as soon as it is released.
  5. Review logs for strange access, failed attempts, crashes, file uploads, or unexpected account changes.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm the installed version is no longer in the affected range.
  • Retest the affected page, API, upload, login, chat, container, or network flow.
  • Check logs after the change for blocked attempts, crashes, or errors.
  • Run a fresh Fixnx scan and save the report.

Related categories

Trusted references

FAQ

What is affected by CVE-2026-7831?

UltraVNC Viewer versions listed as affected should be reviewed: <= 1.8.2.2.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.