Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-57966

CVE-2026-57966: spice-vdagent Path Traversal Flaw

CVE-2026-57966 is a path traversal vulnerability in spice-vdagent that allows malicious SPICE hosts to write arbitrary files to guest systems. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2026-57966 Overview

A path traversal vulnerability [CWE-22] affects spice-vdagent, the guest-side agent used with SPICE (Simple Protocol for Independent Computing Environments) virtualization. The flaw allows a malicious or compromised SPICE host to write arbitrary files to any location on the guest operating system. The vulnerability exists because spice-vdagent does not sanitize filenames provided by the SPICE host during file transfer operations. An attacker controlling the host can traverse directory boundaries and place files at attacker-chosen paths within the guest, operating with the privileges of the spice-vdagent process, typically the logged-in user. Exploitation requires the SPICE host itself to be untrusted or compromised.

Critical Impact

An untrusted SPICE host can write arbitrary files anywhere the guest spice-vdagent process has permission, enabling guest-side integrity compromise and potential code execution paths through overwriting user-owned configuration or startup files.

Affected Products

  • spice-vdagent (SPICE guest agent)
  • Linux guest virtual machines running spice-vdagent under SPICE-enabled hypervisors
  • Red Hat Enterprise Linux distributions shipping spice-vdagent (see vendor advisory)

Discovery Timeline

  • 2026-06-29 - CVE-2026-57966 published to NVD
  • 2026-06-29 - Last updated in NVD database

Technical Details for CVE-2026-57966

Vulnerability Analysis

The spice-vdagent daemon runs inside SPICE guest virtual machines and mediates functionality between the host and guest, including clipboard sharing and file transfers. When the SPICE host initiates a file transfer to the guest, it supplies a filename that the guest agent uses to create the destination file. The agent trusts this filename without validating that it resolves to a safe location within the intended download directory.

Because the filename is not sanitized, path components such as ../ sequences or absolute paths can escape the intended destination. The host can therefore direct writes to arbitrary paths in the guest filesystem, constrained only by the effective permissions of the spice-vdagent process. In typical deployments this process runs as the logged-in user, giving the attacker write access across the user's home directory and any world-writable location.

The CWE-22 classification captures the core issue: improper limitation of a pathname to a restricted directory. Impact is limited to integrity (I:H) with no direct confidentiality or availability effect, but overwriting shell startup files, SSH authorized_keys, or desktop autostart entries provides a straightforward path to code execution as the target user on the next login.

Root Cause

The root cause is missing input validation on the filename field received from the SPICE host during the file transfer protocol exchange. The guest agent concatenates or uses the attacker-supplied name to construct the destination path without canonicalizing the result or verifying that it stays within the configured transfer directory.

Attack Vector

Exploitation requires a compromised or malicious SPICE host communicating with a guest running a vulnerable spice-vdagent. The attacker initiates a file transfer and supplies a crafted filename containing traversal sequences or an absolute path. The guest agent then writes the file to the attacker-chosen location using the privileges of the running agent.

The vulnerability manifests when the guest agent processes the filename received over the SPICE virtio channel. Refer to the Red Hat CVE-2026-57966 Advisory and Red Hat Bug Report #2493582 for protocol-level detail.

Detection Methods for CVE-2026-57966

Indicators of Compromise

  • Unexpected files appearing outside the default spice-vdagent transfer directory, particularly under user home directories or system paths.
  • Modifications to shell startup files (.bashrc, .profile), SSH configuration (~/.ssh/authorized_keys), or desktop autostart entries (~/.config/autostart/) with spice-vdagent listed as the writing process.
  • File creation events on the guest that correlate in time with SPICE file transfer sessions initiated by the host.

Detection Strategies

  • Monitor file creation events where the writing process is spice-vdagent and the target path resolves outside the configured download directory.
  • Audit spice-vdagent process activity using Linux audit rules on execve, openat, and rename syscalls originating from the agent binary.
  • Correlate guest-side file writes with host-side SPICE session logs to identify anomalous transfer targets.

Monitoring Recommendations

  • Enable auditd rules that log write operations by the spice-vdagent process across sensitive directories.
  • Forward guest process telemetry and file integrity monitoring events to a centralized analytics platform for cross-guest correlation.
  • Alert on any spice-vdagent write to paths containing .. after canonicalization or to locations outside $HOME/Downloads or the configured transfer directory.

How to Mitigate CVE-2026-57966

Immediate Actions Required

  • Apply vendor updates for spice-vdagent as they become available from your Linux distribution. Consult the Red Hat CVE-2026-57966 Advisory for current package status.
  • Treat SPICE hosts as part of the guest's trust boundary. Do not connect guests running spice-vdagent to untrusted or shared SPICE hosts.
  • Disable file transfer functionality in spice-vdagent if the feature is not required in your environment.

Patch Information

Red Hat tracks remediation under the referenced advisory and bug report. Monitor the Red Hat CVE-2026-57966 Advisory and Red Hat Bug Report #2493582 for fixed package versions and downstream distribution updates. No exploit is publicly available and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Workarounds

  • Stop and disable the spice-vdagent service on guests that do not require host-guest integration features.
  • Remove the spice-vdagentd socket or restrict access to it so that untrusted local users cannot mediate transfers.
  • Restrict guest exposure by ensuring only trusted, patched hypervisor hosts are permitted to serve the SPICE channel.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.