cve.bz

CVE-2019-10161 Path traversal

7.8 highEPSS 0.5%Fix available

High (7.8). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
It was discovered that libvirtd before versions 4.10.1 and 5.4.1 would permit read-only clients to use the virDomainSaveImageGetXMLDesc() API, specifying an arbitrary path which would be accessed with the permissions of the libvirtd process. An attacker with access to the libvirtd socket could use this to probe the existence of arbitrary files, cause denial of service or cause libvirtd to execute arbitrary programs.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-862 Missing Authorization
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-10161 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-10161?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-10161?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-10161 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:libvirtbefore 4.10.1
redhat:libvirtfrom 5.0.0 before 5.4.1
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:virtualization4.0
redhat:virtualization_host4.0
canonical:ubuntu_linux14.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libvirt1.2.9-9+deb8u7DLA-1832-1
Debian9libvirt3.0.0-4+deb9u4DSA-4469-1
Debian12, 13, 14libvirt5.0.0-4DEBIAN-CVE-2019-10161
Ubuntu16.04:LTSlibvirt1.3.1-1ubuntu10.27UBUNTU-CVE-2019-10161 USN-4047-1
Ubuntu18.04:LTSlibvirt4.0.0-1ubuntu8.12UBUNTU-CVE-2019-10161 USN-4047-1
UbuntuPro:14.04:LTSlibvirt1.2.2-0ubuntu13.1.28+esm1UBUNTU-CVE-2019-10161 USN-4047-2
Red Hatadvanced_virtualization:8::el8SLOF0:20180702-3.git9b7ab2f.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8hivex, perl-hivex, ruby-hivex and 7 more0:1.3.15-6.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8libguestfs-winsupport0:8.0-2.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-6.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8libssh2, libssh2-debuginfo, libssh2-debugsource0:1.8.0-7.module+el8.0.0.z+3438+2851622e.1RHSA-2019:1762
Red Hatadvanced_virtualization:8::el8libvirt, libvirt-nss, libvirt-docs and 49 more0:5.0.0-7.2.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-1.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:5.0.0-3.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8nbdkit, nbdkit-devel, nbdkit-debuginfo and 15 more0:1.4.2-4.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-10.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:5.0.0-1.module+el8.0.0.z+3438+2851622eRHSA-2019:1762
Red Hatadvanced_virtualization:8::el8qemu-img, qemu-kvm, qemu-kvm-core and 18 more15:3.1.0-20.module+el8.0.0.z+3438+2851622e.1RHSA-2019:1762
24 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 2 morelibvirt2.0.0-27.61.1SUSE-SU-2019:2105-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-LTSS and 3 morelibvirt3.3.0-5.40.1SUSE-SU-2019:2227-1
SUSEEnterprise Storage 5, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSSlibvirt3.3.0-5.40.1SUSE-SU-2019:2227-2
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4 and 1 morelibvirt4.0.0-8.15.2SUSE-SU-2019:1599-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Server Applications 15libvirt4.0.0-9.27.1SUSE-SU-2019:1637-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Server Applications 15 SP1libvirt5.1.0-8.6.1SUSE-SU-2019:1643-1
SUSELinux Enterprise Point of Sale 11 SP3libvirt1.0.5.9-21.20.1SUSE-SU-2019:14100-1
SUSELinux Enterprise Server 11 SP4-LTSSlibvirt1.2.5-23.20.1SUSE-SU-2019:14097-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1libvirt1.2.18.4-22.13.1SUSE-SU-2019:1686-1
SUSELinux Enterprise Server 12-LTSSlibvirt1.2.5-27.19.1SUSE-SU-2019:1690-1
openSUSELeap 15.0libvirt4.0.0-lp150.7.18.2openSUSE-SU-2019:1672-1
openSUSELeap 15.1libvirt5.1.0-lp151.7.3.1openSUSE-SU-2019:1753-1
openSUSETumbleweedlibvirt7.7.0-2.1openSUSE-SU-2024:11008-1
Alpinev3.7, v3.8, v3.9 and 15 morelibvirt5.5.0-r0ALPINE-CVE-2019-10161

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

* This vulnerability requires access to the libvirt socket, normally in /var/run/libvirt/libvirt_sock_ro. Typically in hypervisor environments, local user accounts are not supported so no untrusted users should be able to access this socket.

* Red Hat Gluster Storage 3 is not affected by this vulnerability as libvirtd daemon is not shipped in Gluster.

* On Red Hat Enterprise Linux 6, the impact of this vulnerability is limited to denial of service or disclosing the existence of arbitrary files. Privilege escalation is not possible. For RHEL6, this CVE is rated as Moderate severity with 7.3/CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:H

Red Hat's mitigation

The Unix permissions of libvirt's read-only socket can be made more restrictive than the default (0777) by editing `/etc/libvirt/libvirtd.conf`. The settings `unix_sock_group = libvirt` and `unix_sock_ro_perms = 0770` will restrict access to only members of `libvirt`, who already have management access to virtual machines.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6libvirt-0:0.10.2-64.el6_10.2Fixed 2019-06-20RHSA-2019:1578
Red Hat Enterprise Linux 7libvirt-0:4.5.0-10.el7_6.12Fixed 2019-06-20RHSA-2019:1579
Red Hat Enterprise Linux 8virt:rhel-8000020190618154454.f8e95b4eFixed 2019-06-20RHSA-2019:1580
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.0.0-8000020190620145550.f8e95b4eFixed 2019-07-11RHSA-2019:1762
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-release-virtualization-host-0:4.3.4-1.el7evFixed 2019-07-08RHSA-2019:1699
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.3.4-20190620.3.el7_6Fixed 2019-07-08RHSA-2019:1699
Red Hat Enterprise Linux 5libvirtNot affected
Red Hat Storage 3libvirtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-10161.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17).

References

Check your stackJSON