Skip to content

CVE-2026-137738 RealVNC UDP vulnerability: check, block UDP, patch

CVE-2026-137738 is a pre-auth memory-safety bug in RealVNC UDP connections (CVSS 9.8) that can allow remote code execution as root on some platforms. Cloud and UDP direct connections are exposed; TCP-only direct ones are not. Patching is the fix; blocking UDP is a stopgap for direct connections only.

By Nishant Gauraw, NG-NeXTPublished Updated 8 min read

RealVNC published Security Advisory RVNC-2026-001 on 20 November 2026, describing a memory-safety vulnerability in UDP-based connections. It can be exploited before authentication to run code remotely or to crash the software, and "could allow an attacker to remotely execute code as root on certain platforms or perform a denial of service attack." The advisory first listed the CVE ID as pending; its table now shows CVE-2026-137738 (the page was edited on 27 November, though it still says "Last updated 20 November 2026"). On 27 November, MITRE published CVE-2026-137738 for the same issue, with CWE-787 (out-of-bounds write) and a CVSS 3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). The CVE description matches the advisory, including the affected version ranges.

At the time the advisory was published, RealVNC said it was not aware of any active exploitation. We have not seen a later vendor statement that changes that. Do not wait for one.

The installs that get missed are the quiet ones: a jump box next to an IPMI network, a lab PC with RealVNC Viewer, a technician's phone with the mobile app, an On-Demand Assist binary someone downloaded last year. Those are in scope too.

Who is exposed, and who is not#

The advisory is specific:

This affects all customers using our cloud-hosted connectivity and manually configured direct connections (including offline licensed/on-premises deployments). TCP-only direct connections are not exposed.

So:

  • Exposed: RealVNC cloud connections, and direct (including on-premises) connections that use UDP.
  • Not exposed: direct connections that are TCP-only.

That "not exposed" carve-out is only for TCP-only direct connections. It is not a reason to leave a cloud-connected, unpatched Server on the internet. The fix for cloud connectivity is to update. The vendor's advisory does not offer a supported configuration workaround that keeps cloud connections and avoids the bug.

By default, RealVNC Server's IpListenProtocols parameter is TCP,UDP (documented for Enterprise, since 6.4.0). RealVNC Viewer's EnableUdpRfb defaults to TRUE (all platforms, since 6.4.0), and "by default, VNC Viewer tries to establish a UDP connection first… before falling back to TCP." If you have never touched those settings, assume UDP is in use for direct connections.

Affected and fixed versions#

The ranges below are taken from the advisory. The CVE record uses the same bounds. "Through" and "and earlier" mean what they say: the last listed version is still affected.

Desktop (Windows, macOS, Linux)

ProductAffectedFixed in
RealVNC Viewer8.4.0 to 8.6.18.6.2
RealVNC Classic Viewer6.4.0 to 7.18.27.18.3
RealVNC Server6.4.0 to 7.19.07.19.1
RealVNC Connect App8.6.1 and earlier8.6.2
RealVNC On-Demand Assist3.4.1 and earlier3.5.0

Mobile

ProductAffectedFixed in
RealVNC Viewer for iOS/iPadOS3.7.0 to 4.9.54.9.6
RealVNC Viewer for Android3.5.0 to 4.9.54.9.6
RealVNC Server for iOS/iPadOS2.8.1 and earlier2.8.2
RealVNC Server for Android2.8.3 and earlier2.8.4

Do not confuse these packages with TightVNC, TigerVNC, UltraVNC, x11vnc or the vncserver that ships with some Linux desktops. Those are different products. This CVE is RealVNC's.

Find every install, and read the version#

Linux#

Official packages are named realvnc-vnc-server and realvnc-vnc-viewer. RealVNC's install and remove article uses those names for both Debian-compatible and Red Hat-compatible systems, and the Service Mode unit is vncserver-x11-serviced.service.

On Debian, Ubuntu and other dpkg systems:

dpkg-query -W realvnc-vnc-server realvnc-vnc-viewer
systemctl status vncserver-x11-serviced.service
command -v vncserver-x11 vncserver-virtual Xvnc vncviewer

On RHEL, AlmaLinux, Rocky and Fedora:

rpm -q realvnc-vnc-server realvnc-vnc-viewer
systemctl status vncserver-x11-serviced.service
command -v vncserver-x11 vncserver-virtual Xvnc vncviewer

dpkg-query and rpm -q print an error for a package that is not installed; that is the result you want on a clean host. If the package is present, the version string is the one to compare with the table above. A Server at 7.19.0 or earlier in the 6.4.0–7.19.0 range is affected; 7.19.1 is the fix. A Viewer in the 8.x line is affected from 8.4.0 through 8.6.1.

Standalone binaries and forgotten lab installs will not show up in the package database. Search for the RealVNC binaries and for the configuration directories the vendor documents, and look at On-Demand Assist copies people may have downloaded and kept:

getent passwd | cut -d: -f6 | while read -r h; do
  [ -d "$h/.vnc" ] && echo "$h/.vnc"
done
ls -ld /etc/vnc /root/.vnc 2>/dev/null

For a running Server, RealVNC staff document -getconfig as the way to see the parameters actually in effect, including IpListenProtocols and RfbPort (default 5900):

sudo vncserver-x11 -service -getconfig
vncserver-x11 -getconfig
vncserver-x11 -virtual -getconfig
Xvnc -getconfig

The About dialog on the Server status icon is also a valid version check if someone is sitting at the desktop.

Windows#

Use Programs and Features, or ask the registry for uninstall entries whose display name is RealVNC, and open About from the RealVNC Server tray icon.

Get-ItemProperty `
  HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*,
  HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* `
  -ErrorAction SilentlyContinue |
  Where-Object { $_.DisplayName -match 'RealVNC' } |
  Select-Object DisplayName, DisplayVersion, Publisher, InstallLocation

Service Mode settings live under HKLM\Software\RealVNC\vncserver; User Mode under HKCU\Software\RealVNC\vncserver; Viewer under HKCU\Software\RealVNC\vncviewer, as in RealVNC's parameter documentation. Look at IpListenProtocols and RfbPort on the Server keys if they have been set. A silent MSI install can put Server on machines that nobody thinks of as "remote access" boxes, so run the query on jump hosts, lab PCs and image gold copies, not only on the machines in the remote-access inventory.

macOS#

RealVNC's installer puts Server under /Applications/RealVNC/ and Viewer at /Applications/RealVNC Viewer.app. The About dialog on each app is the straightforward version check. To inventory a fleet over SSH:

ls -ld "/Applications/RealVNC" "/Applications/RealVNC Viewer.app"
pkgutil --pkgs | grep -i realvnc

If pkgutil prints a package ID, pkgutil --pkg-info <id> gives the version and install location. Configuration files, per the same parameter documentation, include /etc/vnc/config.d/vncserver, /var/root/.vnc/config.d/vncserver (Service Mode) and ~/.vnc/config.d/vncserver (User Mode).

Also walk phones and tablets: Viewer for iOS/iPadOS through 4.9.5, Viewer for Android through 4.9.5, Server for iOS/iPadOS through 2.8.1, and Server for Android through 2.8.3 are affected. The advisory says mobile apps should update from the App Store or Google Play, and gives the store links.

Until you can patch: block UDP, or switch direct connections to TCP-only#

Patching is the fix. If you cannot do that in the next hours, reduce the exposed surface. Everything in this section applies to direct connections only; it does not make a cloud-connected, unpatched install safe.

For direct connections, prefer TCP-only. On an Enterprise Server, set IpListenProtocols to TCP. The parameter reference says: "Specify just TCP to prevent direct connections that would use the UDP protocol." On Linux, put the line in the Server configuration file for the mode you run (for Service Mode, /etc/vnc/config.d/vncserver-x11 or the policy file under /etc/vnc/policy.d/), then reload:

# /etc/vnc/config.d/vncserver-x11
IpListenProtocols=TCP
sudo vncserver-x11 -service -reload

On macOS Service Mode the corresponding file is /etc/vnc/config.d/vncserver. On Windows Service Mode, create a string value IpListenProtocols with data TCP under HKLM\Software\RealVNC\vncserver. Policy keys, if you use them, override the others.

On Viewer, set EnableUdpRfb to FALSE so the Viewer does not try UDP first. That belongs in ~/.vnc/config.d/vncviewer on Linux and macOS, or HKCU\Software\RealVNC\vncviewer on Windows, or in policy.

Block UDP on the RFB port at the host and at the perimeter, even after you change the parameter, until the boxes are patched. The default RfbPort is 5900. If -getconfig or the registry shows a different port, block that one instead. A host-firewall sketch, to be adjusted for the port you actually listen on:

# nftables (add to your existing input chain; do not paste this as a complete ruleset)
nft add rule inet filter input udp dport 5900 drop

# or, if you use firewalld
firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="5900" protocol="udp" drop'
firewall-cmd --reload

Confirm with ss -lntup (or Get-NetUDPEndpoint on Windows) that nothing RealVNC is still listening on UDP.

Cloud connections are a different case. The advisory says they are affected, and it does not describe a UDP-off switch that keeps cloud connectivity. AllowCloudRfb=FALSE will "prevent cloud connections to VNC Server" and, the docs note, will not terminate existing cloud connections. That is a service cut, not a tidy mitigation. Use it only if you can live without cloud access until the upgrade is done, and then update anyway.

None of this is a reason to delay the upgrade. TCP-only and a UDP block are stopgaps for direct connections. They are not a patch.

Upgrade, then check again#

Download the fixed builds from the links in the advisory:

Install Server 7.19.1 or later, Viewer 8.6.2 or later, Classic Viewer 7.18.3 or later, Connect App 8.6.2 or later, and On-Demand Assist 3.5.0 or later, plus the mobile versions in the table. Then rerun the inventory commands and confirm the version string, not only that an installer exited 0. If you turned off UDP or cloud access as a stopgap, decide deliberately whether to leave TCP-only in place; a patched Server can listen on UDP again, but it does not have to.

The advisory credits Ozgun Kultekin of Wakefield for reporting the bug.

Evidence#

As of 29 November 2026. We did not test the vulnerability, the mitigations or the commands for this post; they are read from the vendor's documents.

ClaimStatusBasis
Advisory RVNC-2026-001 published 20 Nov 2026; critical, CVSS 9.8; pre-auth memory-safety bug in UDP-based connections; no known exploitation at publicationVerified against a primary sourceRealVNC advisory, read 29 Nov 2026
Cloud-hosted and manually configured direct connections are affected; TCP-only direct connections are notVerified against a primary sourceSame advisory
Affected and fixed versions in both tables (for example Server 6.4.0 to 7.19.0, fixed in 7.19.1)Verified against a primary sourceSame advisory; the CVE record uses the same bounds, CWE-787, published 27 Nov 2026
IpListenProtocols defaults to TCP,UDP; Viewer EnableUdpRfb defaults to TRUE; AllowCloudRfb=FALSE prevents new cloud connections (existing ones are not terminated)Verified against a primary sourceRealVNC parameter references linked in the text
Setting TCP-only or blocking UDP on the RFB port reduces exposure of direct connectionsReported, not reproducedFollows from the advisory's TCP-only statement; we did not test these settings, and they do not protect cloud connections
Inventory commands for Linux, Windows and macOSReported, not reproducedCommands built from the vendor's package names and documented paths; not run on a RealVNC install by us
The advisory still says RealVNC was not aware of exploitation, as of publicationVerified against a primary sourceAdvisory page read 29 Nov 2026; this shows only what that page says, not that no later statement exists elsewhere

FAQ#

Is my RealVNC install affected by CVE-2026-137738?#

If you use RealVNC cloud connectivity or direct connections that use UDP, and run a version in the advisory's affected ranges (for example Server 6.4.0 to 7.19.0), yes. TCP-only direct connections are not exposed.

Is blocking UDP enough?#

Only for direct connections, and only as a stopgap. It does not protect cloud-connected installs, and the vendor's advisory offers no configuration workaround for cloud connections. Update to the fixed version.

Which versions fix it?#

Server 7.19.1, Viewer 8.6.2, Connect App 8.6.2, Classic Viewer 7.18.3 and On-Demand Assist 3.5.0 on desktop; Viewer 4.9.6 on iOS and Android, Server 2.8.2 on iOS and 2.8.4 on Android.

Is it being exploited?#

At publication on 20 November 2026 RealVNC said it was not aware of active exploitation. We have seen no later vendor statement. Do not wait for one.

Does this affect TightVNC, TigerVNC or x11vnc?#

No. The CVE is for RealVNC's products only; those are different software.

How do I check the version on Linux?#

Query the package manager for realvnc-vnc-server and realvnc-vnc-viewer (dpkg-query or rpm -q), and also look for standalone binaries and On-Demand Assist copies that do not appear in the package database.

Has the CVE ID been assigned?#

Yes. It was initially pending in the advisory; the advisory now lists CVE-2026-137738, which MITRE published on 27 November 2026.

If you would rather have RealVNC and other jump-box software inventoried and patched across a fleet, NG-NeXT does consulting and turnkey builds. Tell us what you run through the contact page.

— Nishant Gauraw, Founder and CEO, NG-NeXT Tech

Talk to us directly.

We reply within one business day. The site assistant answers when it is available.