CVE-2026-57966
Received Received - Intake

Path Traversal in spice-vdagent

Vulnerability report for CVE-2026-57966, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-29

Last updated on: 2026-06-29

Assigner: Red Hat, Inc.

Description

A path traversal vulnerability was found in spice-vdagent. This flaw allows a malicious or compromised SPICE host to write arbitrary files to any location on the guest operating system. This occurs because the filename provided by the SPICE host during file transfers is not properly sanitized before being used. An attacker could exploit this to write to sensitive locations with the privileges of the spice-vdagent process, typically the logged-in user. This issue requires the SPICE host to be untrusted or compromised for exploitation.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-29
Last Modified
2026-06-29
Generated
2026-06-29
AI Q&A
2026-06-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
redhat spice-vdagent *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a path traversal flaw found in spice-vdagent's file transfer functionality. It occurs because the filename provided by the SPICE host is not properly sanitized before being used to save files on the guest operating system. Specifically, the filename can include absolute paths or relative paths with '..' components, which allows the attacker to bypass the intended save directory.

As a result, a malicious or compromised SPICE host can write arbitrary files to any location on the guest filesystem with the privileges of the spice-vdagent process, which is typically the logged-in user.

Impact Analysis

This vulnerability can allow an attacker controlling or compromising the SPICE host to write arbitrary files anywhere on the guest system. This could lead to unauthorized modification or replacement of sensitive files, potentially resulting in privilege escalation, data corruption, or the introduction of malicious code.

Since the files are written with the privileges of the spice-vdagent process (usually the logged-in user), the attacker can affect user-level files and configurations, which may compromise the integrity and security of the guest system.

Mitigation Strategies

To mitigate this vulnerability, ensure that the SPICE host is trusted and not compromised, as exploitation requires a malicious or compromised SPICE host.

Additionally, consider updating or patching the spice-vdagent package to a version where the filename sanitization issue in file transfers is fixed.

Restrict or monitor file transfer functionality from SPICE hosts to prevent unauthorized file writes.

Compliance Impact

This vulnerability allows a malicious or compromised SPICE host to write arbitrary files to any location on the guest operating system with the privileges of the spice-vdagent process, typically the logged-in user.

Such unauthorized file writes could potentially lead to unauthorized modification or corruption of sensitive data, which may impact compliance with data protection standards and regulations such as GDPR or HIPAA that require safeguarding data integrity and preventing unauthorized access or alteration.

However, exploitation requires the SPICE host to be untrusted or compromised, which is a prerequisite for this vulnerability to be leveraged.

Detection Guidance

Detection of this vulnerability involves monitoring for unusual file writes or attempts to write files to unexpected or sensitive locations by the spice-vdagent process. Since the vulnerability allows a malicious SPICE host to write arbitrary files using path traversal, one approach is to audit file system changes initiated by spice-vdagent.

You can check for suspicious activity by monitoring logs or using file integrity monitoring tools to detect unexpected file creations or modifications outside the normal directories used by spice-vdagent.

Suggested commands include:

  • Use auditd to monitor file writes by spice-vdagent: auditctl -w /path/to/important/directory -p wa -k spice_vdagent_monitor
  • Check running processes and their open files: lsof -c spice-vdagent
  • Search for recently modified files owned by the spice-vdagent user or process: find / -user spice-vdagent -mtime -1
  • Review system logs for unusual SPICE file transfer activity or errors.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57966. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart