libvirt: arbitrary file read/exec via virDomainSaveImageGetXMLDesc API
Published Jul 30, 2019
7.8
HIGHCVSS 3.1
EPSS 0.52%
Description
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.
Affected products
-
- Version fixed in 4.10.1StatusaffectedConstraints-
- Version fixed in 5.4.1StatusaffectedConstraints-
- Version
Configuration 1
Configuration 2
- 6.0
- 7.0
- 8.0
Configuration 3
- 4.0
- 4.0
Running on/with
- 7.0
Configuration 4
- 14.04
No data.
Red Hat Enterprise Linux 6
libvirt-0:0.10.2-64.el6_10.2
Fixed · RHSA-2019:1578
Red Hat Enterprise Linux 7
libvirt-0:4.5.0-10.el7_6.12
Fixed · RHSA-2019:1579
Red Hat Enterprise Linux 8
virt:rhel-8000020190618154454.f8e95b4e
Fixed · RHSA-2019:1580
Red Hat Enterprise Linux 8 Advanced Virtualization
virt:8.0.0-8000020190620145550.f8e95b4e
Fixed · RHSA-2019:1762
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7
redhat-release-virtualization-host-0:4.3.4-1.el7ev
Fixed · RHSA-2019:1699
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7
redhat-virtualization-host-0:4.3.4-20190620.3.el7_6
Fixed · RHSA-2019:1699
Red Hat Enterprise Linux 5
libvirt
Not affected
Red Hat Storage 3
libvirt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | libvirt-0:0.10.2-64.el6_10.2 | Fixed | RHSA-2019:1578 |
| Red Hat Enterprise Linux 7 | libvirt-0:4.5.0-10.el7_6.12 | Fixed | RHSA-2019:1579 |
| Red Hat Enterprise Linux 8 | virt:rhel-8000020190618154454.f8e95b4e | Fixed | RHSA-2019:1580 |
| Red Hat Enterprise Linux 8 Advanced Virtualization | virt:8.0.0-8000020190620145550.f8e95b4e | Fixed | RHSA-2019:1762 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 | redhat-release-virtualization-host-0:4.3.4-1.el7ev | Fixed | RHSA-2019:1699 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 | redhat-virtualization-host-0:4.3.4-20190620.3.el7_6 | Fixed | RHSA-2019:1699 |
| Red Hat Enterprise Linux 5 | libvirt | Not affected | n/a |
| Red Hat Storage 3 | libvirt | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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 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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
AV:L/AC:L/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.52% (0.00516) | 41.76th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.52% (0.00516) | 39.57th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.11% (0.00112) | 27.32th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.07% (0.00074) | 34.11th | v3 (v2023.03.01) |
| Jun 10, 2024 | 0.04% (0.00045) | 14.07th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00045) | 12.06th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.95% (0.00950) | 32.28th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.95% (0.00950) | 30.63th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.95% (0.00950) | 28.61th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.67% (0.01669) | 53.27th | v2 (v2022.01.01) |
| Feb 3, 2022 | 6.60% (0.06599) | 83.03th | v1 |
| Jan 6, 2022 | 6.60% (0.06599) | 82.86th | v1 |
| Sep 1, 2021 | 1.55% (0.01550) | 73.01th | v1 |
| Apr 14, 2021 | 1.55% (0.01550) | 0.00th | v1 |
References (9)
- https://access.redhat.com/libvirt-privesc-vulnerabilities x_refsource_CONFIRMThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2019-10161 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1720115 Issue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10161 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://libvirt.org/git/?p=libvirt.git%3Ba=commit%3Bh=aed6a032cead4386472afb24b16196579e239580 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2019-10161
- https://security.gentoo.org/glsa/202003-18 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://usn.ubuntu.com/4047-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-10161
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/libvirt-privesc-vulnerabilities | x_refsource_CONFIRMThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2019-10161 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1720115 | Issue Tracking | |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10161 | x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory | |
| https://libvirt.org/git/?p=libvirt.git%3Ba=commit%3Bh=aed6a032cead4386472afb24b16196579e239580 | x_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-10161 | ||
| https://security.gentoo.org/glsa/202003-18 | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| https://usn.ubuntu.com/4047-2/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2019-10161 |
Change history (0)
No recorded changes yet.