Cloudanix VulnDB

CVE-2017-12194

Critical · 9.8

CVSS

9.8

EPSS

5.2%

Published

Mar 14, 2018

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A remote server an employee connects to for virtual-machine access could silently take over their computer if the connection software is outdated.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Improper input validation in spice-gtk allows a malicious SPICE server to send crafted messages that trigger out-of-bounds access, resulting in client crash or arbitrary code execution under the privileges of the connecting user.

Why it matters to the business

Organizations relying on SPICE for virtual-machine remote access face risk of workstation compromise, lateral movement, or data exfiltration when users connect to untrusted or compromised hypervisors; the flaw has remained unpatched in the listed versions for years with no observed mass exploitation.

How an attack unfolds

An attacker hosts or compromises a SPICE server, lures a victim into connecting using a vulnerable spice-gtk client, and sends specially constructed server-to-client messages that bypass input checks, achieving code execution without user interaction beyond the initial connection.

How to fix it

Upgrade spice-gtk to a version newer than 0.34 that contains the input-validation fixes; where upgrades are unavailable, restrict connections to only trusted SPICE servers and consider disabling the client in high-risk environments.

How to confirm the fix worked

Confirm spice-gtk package version is greater than 0.34; test connectivity against a non-malicious SPICE server and verify absence of crashes or unexpected process behavior under controlled conditions.

Typical attack path

  1. Attacker gains control of or impersonates a SPICE server reachable by the target
  2. Victim launches spice-gtk client and initiates connection to the attacker-controlled endpoint
  3. Server transmits malicious protocol messages that exploit the validation flaw
  4. Client process crashes or executes attacker-supplied code with user privileges

How to detect it

Review client application logs and system crash reports for spice-gtk terminations immediately following SPICE connection attempts; correlate with network flows to external or unexpected SPICE ports.

What your security team should do

  • Inventory all systems using spice-gtk and prioritize upgrade of any version 0.34 or earlier
  • Block or monitor outbound connections to untrusted SPICE endpoints via network controls
  • Add spice-gtk client crash and unexpected termination events to security monitoring
  • Review dependency graphs to identify downstream projects that embed vulnerable spice-gtk

The record

A flaw was found in the way spice-client processed certain messages sent from the server. An attacker, having control of malicious spice-server, could use this flaw to crash the client or execute arbitrary code with permissions of the user running the client. spice-gtk versions through 0.34 are believed to be vulnerable.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 spice-gtk 0 0.35-1
Debian:12 spice-gtk 0 0.35-1
Debian:13 spice-gtk 0 0.35-1
Mageia:6 spice-gtk 0 0.33-3.1.mga6
SUSE:Linux Enterprise Desktop 12 SP3 spice-gtk 0 0.33-3.3.2
SUSE:Linux Enterprise Server 12 SP3 spice-gtk 0 0.33-3.3.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 spice-gtk 0 0.33-3.3.2
SUSE:Linux Enterprise Software Development Kit 12 SP3 spice-gtk 0 0.33-3.3.2
Ubuntu:14.04:LTS spice 0 0.12.4-0nocelt2ubuntu1.6
Ubuntu:16.04:LTS spice-protocol 0 0.12.10-1ubuntu0.1
Ubuntu:18.04:LTS spice 0 0.14.0-1ubuntu2.1
Ubuntu:18.04:LTS spice-gtk 0 No fix
Ubuntu:Pro:18.04:LTS spice-gtk 0 No fix

Related vulnerabilities