CVE-2017-15108
published 2018-01-20CVE-2017-15108: spice-vdagent up to and including 0.17.0 does not properly escape save directory before passing to shell, allowing local attacker with access to the session…
PriorityP338high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.42%
34.0th percentile
spice-vdagent up to and including 0.17.0 does not properly escape save directory before passing to shell, allowing local attacker with access to the session the agent runs in to inject arbitrary commands to be executed.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | spice-vdagent | < spice-vdagent 0.18.0-1 (bookworm) | spice-vdagent 0.18.0-1 (bookworm) |
| red_hat_inc | spice-vdagent | — | — |
| spice-space | spice-vdagent | <= 0.17.0 | — |
| spice-space | spice-vdagent | >= 0 < 0.18.0-1 | 0.18.0-1 |
| spice-space | spice-vdagent | >= 0 < 0.18.0-1 | 0.18.0-1 |
| spice-space | spice-vdagent | >= 0 < 0.18.0-1 | 0.18.0-1 |
| spice-space | spice-vdagent | >= 0 < 0.18.0-1 | 0.18.0-1 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2017-15108: spice-vdagent - spice-vdagent up to and including 0.17.0 does not properly escape save directory...
vendor_debian·2017·CVSS 7.8
CVE-2017-15108 [HIGH] CVE-2017-15108: spice-vdagent - spice-vdagent up to and including 0.17.0 does not properly escape save directory...
spice-vdagent up to and including 0.17.0 does not properly escape save directory before passing to shell, allowing local attacker with access to the session the agent runs in to inject arbitrary commands to be executed.
Scope: local
bookworm: resolved (fixed in 0.18.0-1)
bullseye: resolved (fixed in 0.18.0-1)
forky: resolved (fixed in 0.18.0-1)
sid: resolved (fixed in 0.18.0-1)
trixie: resolved (fixed in 0.18.0-1)
Red Hat
spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data()
vendor_redhat·CVSS 7.8
CVE-2017-15108 [HIGH] CWE-78 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data()
spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data()
spice-vdagent up to and including 0.17.0 does not properly escape save directory before passing to shell, allowing local attacker with access to the session the agent runs in to inject arbitrary commands to be executed.
Statement: Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Package: spice-vdagent (Red Hat Enterprise Linux 6) - Will not fix
Package: spice-vdagent (Red Hat Enterprise Linux 7) - Will not fix
GHSA
GHSA-rx22-vq3w-89rg: spice-vdagent up to and including 0
ghsa_unreviewed·2022-05-13
CVE-2017-15108 [HIGH] CWE-78 GHSA-rx22-vq3w-89rg: spice-vdagent up to and including 0
spice-vdagent up to and including 0.17.0 does not properly escape save directory before passing to shell, allowing local attacker with access to the session the agent runs in to inject arbitrary commands to be executed.
OSV
CVE-2017-15108: spice-vdagent up to and including 0
osv·2018-01-20·CVSS 7.8
CVE-2017-15108 [HIGH] CVE-2017-15108: spice-vdagent up to and including 0
spice-vdagent up to and including 0.17.0 does not properly escape save directory before passing to shell, allowing local attacker with access to the session the agent runs in to inject arbitrary commands to be executed.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-57966 spice-vdagent: Path traversal in file transfer via unsanitized filename [fedora-all]
bugzilla·2026-06-29·CVSS 7.8
CVE-2026-57966 [HIGH] CVE-2026-57966 spice-vdagent: Path traversal in file transfer via unsanitized filename [fedora-all]
CVE-2026-57966 spice-vdagent: Path traversal in file transfer via unsanitized filename [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
A path traversal vulnerability was found in spice-vdagent. In src/vdagent/file-xfers.c, the filename received from the SPICE host in file transfer metadata is used directly in g_build_filename() without any sanitization (file-xfers.c:138-139, 190). The g_build_filename() function has documented behavior where if the second argument is an absolute path (starts with '/'), the first argument (save_dir) is silently discarded. Additionally, '..' components in relative paths
Bugzilla
CVE-2026-57966 spice-vdagent: Path traversal in file transfer via unsanitized filename
bugzilla·2026-06-26·CVSS 7.8
CVE-2026-57966 [HIGH] CVE-2026-57966 spice-vdagent: Path traversal in file transfer via unsanitized filename
CVE-2026-57966 spice-vdagent: Path traversal in file transfer via unsanitized filename
A path traversal vulnerability was found in spice-vdagent. In src/vdagent/file-xfers.c, the filename received from the SPICE host in file transfer metadata is used directly in g_build_filename() without any sanitization (file-xfers.c:138-139, 190). The g_build_filename() function has documented behavior where if the second argument is an absolute path (starts with '/'), the first argument (save_dir) is silently discarded. Additionally, '..' components in relative paths are not stripped, enabling directory traversal.
This allows a malicious SPICE host to write arbitrary files at arbitrary paths on the guest filesystem, with the privileges of the spice-vdagent process (typically the logged-in user).
Not
Bugzilla
CVE-2017-15108 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data() [fedora-all]
bugzilla·2017-11-29·CVSS 7.8
CVE-2017-15108 [HIGH] CVE-2017-15108 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data() [fedora-all]
CVE-2017-15108 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data() [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue af
Bugzilla
CVE-2017-15108 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data()
bugzilla·2017-11-08·CVSS 7.8
CVE-2017-15108 [HIGH] CVE-2017-15108 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data()
CVE-2017-15108 spice-vdagent: Improper validation of xfers->save_dir in vdagent_file_xfers_data()
It was reported that vdagent_file_xfers_data() does not properly escape xfers->save_dir before giving it as argument to system(), allowing for arbitrary code execution.
Discussion:
Acknowledgments:
Name: Seth Arnold (Canonical)
---
Statement:
Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
---
Created spice-vdagent tracking bugs for this issue:
Affects: fedora-all [bug 1518602]
---
Upstream patch:
https://cgit.freedesktop.org/spice/linux/vd_agent/commit
https://cgit.freedesktop.org/spice/linux/vd_agent/commit/?id=8ba174816d245757e743e636df357910e1d5eb61https://lists.debian.org/debian-lts-announce/2021/01/msg00012.htmlhttps://security.gentoo.org/glsa/201804-09https://cgit.freedesktop.org/spice/linux/vd_agent/commit/?id=8ba174816d245757e743e636df357910e1d5eb61https://lists.debian.org/debian-lts-announce/2021/01/msg00012.htmlhttps://security.gentoo.org/glsa/201804-09
2018-01-20
Published