CVE-2019-10161: Path Traversal
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.
Other sources
It was discovered that libvirtd 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.
It was discovered that libvirtd would permit readonly 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.
This vulnerability was first present in libvirt v0.9.4.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/libvirtto a version that resolves this vulnerability.Fixed in 0:0.10.2-64.el6_10.2 - Upgrade
Upgrade
redhat/libvirtto a version that resolves this vulnerability.Fixed in 0:4.5.0-10.el7_6.12 - Upgrade
Upgrade
redhat/redhat-release-virtualization-hostto a version that resolves this vulnerability.Fixed in 0:4.3.4-1.el7e - Upgrade
Upgrade
redhat/redhat-virtualization-hostto a version that resolves this vulnerability.Fixed in 0:4.3.4-20190620.3.el7_6 - Upgrade
Upgrade
redhat/libvirtto a version that resolves this vulnerability.Fixed in 4.10.1 - Upgrade
Upgrade
redhat/libvirtto a version that resolves this vulnerability.Fixed in 5.4.1 - Upgrade
Upgrade
debian/libvirtto a version that resolves this vulnerability.Fixed in 7.0.0-3+deb11u3Fixed in 9.0.0-4+deb12u2Fixed in 11.3.0-3+deb13u2Fixed in 12.0.0-1 - Upgrade
Upgrade
alpine/libvirtto a version that resolves this vulnerability.Fixed in 5.5.0-r0 - Upgrade
Upgrade
libvirtto a version that resolves this vulnerability.Fixed in 4.10.1 - Upgrade
Upgrade
libvirtto a version that resolves this vulnerability.Fixed in 5.4.1 - Configuration
Edit /etc/libvirt/libvirtd.conf to set unix_sock_group = libvirt and unix_sock_ro_perms = 0770, restricting read-only socket access to members of the libvirt group.
libvirt libvirtd unix_sock_group and unix_sock_ro_perms = libvirt and 0770
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2019-10161?
CVE-2019-10161 is a vulnerability discovered in libvirtd before versions 4.10.1 and 5.4.1.
What is the severity of CVE-2019-10161?
The severity of CVE-2019-10161 is high with a CVSS score of 8.8.
How does CVE-2019-10161 affect libvirt?
CVE-2019-10161 allows read-only clients to use the virDomainSaveImageGetXMLDesc() API with an arbitrary path, leading to potential privilege escalation.
What is the remedy for CVE-2019-10161?
The remedy for CVE-2019-10161 is to update libvirtd to version 4.10.1 or 5.4.1.
Where can I find more information about CVE-2019-10161?
You can find more information about CVE-2019-10161 at the following references: [link 1](https://access.redhat.com/libvirt-privesc-vulnerabilities), [link 2](https://libvirt.org/git/?p=libvirt.git;a=commit;h=aed6a032cead4386472afb24b16196579e239580), [link 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1722463).