Malicious SPICE Servers Can Crash or Hijack Ubuntu Virtual Desktop Clients
Ubuntu has published security notice USN-9465-1, dated 2 December 2026, covering two vulnerabilities in spice-gtk, the GTK widget library that desktop tools use to talk to SPICE virtual machine consoles. The flaws affect the libspice-client-glib-2.0-8 package on Ubuntu 16.04 LTS, 18.04 LTS and 20.04 LTS. The first issue, CVE-2018-10873, is a missing message size validation when demarshalling data received from a server, and it affects only the 16.04 and 18.04 releases. The second, CVE-2020-14355, is incorrect handling of QUIC image decoding and affects all three listed releases. In both cases the stated outcome ranges from a client crash and denial of service to the possibility of arbitrary code execution on the machine running the client.
Both bugs sit on the client side of the connection, so the attacker's position is a malicious or compromised SPICE server rather than a remote scanner on the internet. For CVE-2018-10873, the server sends crafted protocol messages whose declared sizes are not properly checked as the client unpacks them, which the vendor notes requires the session to be authenticated first. For CVE-2020-14355, the defect lies in the client's QUIC image decoder, the routine that unpacks image data streamed from the virtual machine's framebuffer, meaning a hostile server can influence memory handling simply by sending images the victim's viewer renders. Ubuntu has not published proof-of-concept code, exploitation details or a CVSS score alongside this notice, so the practical difficulty of turning either crash into reliable code execution is not documented. Fixed packages are available for all three releases.
The exposure here matters because of who typically runs these clients. SPICE viewers such as virt-viewer, remote-viewer and virtual machine management front-ends are commonly installed on administrator workstations and jump hosts, the same systems that hold hypervisor credentials and management tooling. A compromised or attacker-operated hypervisor could therefore reverse the usual direction of trust and reach back into the console of the person administering it. The affected releases are also well past their standard support windows, and the 20.04 and 18.04 fixes are delivered only through Ubuntu Pro ESM Apps, which means unattached systems continue running vulnerable binaries even after a routine update. On current evidence this is a maintenance-priority issue rather than an emergency: FIRST EPSS places CVE-2018-10873 at a 3.9 percent probability of exploitation in the next 30 days and CVE-2020-14355 at 2.7 percent, and no confirmed in-the-wild exploitation is reported for either.
Attack Surface
Endpoint, Remote Access Service
Tactics
Execution, Impact
Techniques
- T1203 – Exploitation for Client Execution
- T1499.004 – Application or System Exploitation
SuperPRO's Threat Countermeasures Procedures
- Upgrade libspice-client-glib-2.0-8 to 0.37-2ubuntu0.1~esm1 on Ubuntu 20.04 LTS (focal), 0.34-1.1ubuntu0.1~esm1 on 18.04 LTS (bionic) and 0.30-1ubuntu0.1~esm1 on 16.04 LTS (xenial), as listed in USN-9465-1.
- Attach affected hosts to Ubuntu Pro and enable the ESM Apps repository (sudo pro attach, then sudo pro enable esm-apps) — the 20.04 and 18.04 fixes for CVE-2018-10873 and CVE-2020-14355 ship only through ESM Apps and will not arrive via a standard apt upgrade on unattached systems.
- Inventory exposure before and after patching with dpkg -l libspice-client-glib-2.0-8 and apt-cache policy libspice-client-glib-2.0-8 across all workstations and jump hosts, flagging any version below the USN-9465-1 fixed releases.
- Restart every process that has the old shared library mapped after the upgrade — virt-viewer, remote-viewer, virt-manager and GNOME Boxes — or reboot the host, since a running viewer keeps the vulnerable libspice-client-glib-2.0-8 image in memory.
- Restrict outbound SPICE connections from administrator workstations to the known hypervisor management subnets on the SPICE port range TCP 5900-5999, so viewers cannot be pointed at arbitrary third-party or internet-hosted SPICE servers.
- Alert on segmentation faults and apport crash reports for remote-viewer, virt-viewer and virt-manager in journald or /var/crash, as a memory-corruption attempt against the QUIC image decoder (CVE-2020-14355) first presents as a client crash.
- Where 16.04 or 18.04 endpoints cannot be brought under ESM coverage, remove the spice-gtk client packages from those hosts and perform VM console access from a patched 20.04 or later system instead.