CVE-2019-10161: Path Traversal

Published Jun 13, 2019
·
Updated

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

37 affected componentsFixes available
redhat/libvirt<0:0.10.2-64.el6_10.2
0:0.10.2-64.el6_10.2
redhat/libvirt<0:4.5.0-10.el7_6.12
0:4.5.0-10.el7_6.12
redhat/redhat-release-virtualization-host<0:4.3.4-1.el7e
0:4.3.4-1.el7e
redhat/redhat-virtualization-host<0:4.3.4-20190620.3.el7_6
0:4.3.4-20190620.3.el7_6
redhat/libvirt<4.10.1
4.10.1
redhat/libvirt<5.4.1
5.4.1
redhat libvirt<4.10.1
redhat libvirt>=5.0.0<5.4.1
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Virtualization=4.0
redhat Virtualization Host=4.0
redhat Enterprise Linux=7.0
Canonical Ubuntu Linux=14.04
debian/libvirt
7.0.0-3+deb11u39.0.0-4+deb12u211.3.0-3+deb13u212.0.0-1
All of the following
Any of the following
redhat Virtualization=4.0
redhat Virtualization Host=4.0
redhat Enterprise Linux=7.0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0
alpine/libvirt>=5.0.0<5.5.0-r0
5.5.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libvirt to a version that resolves this vulnerability.

    Fixed in 0:0.10.2-64.el6_10.2
  2. Upgrade

    Upgrade redhat/libvirt to a version that resolves this vulnerability.

    Fixed in 0:4.5.0-10.el7_6.12
  3. Upgrade

    Upgrade redhat/redhat-release-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.4-1.el7e
  4. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.4-20190620.3.el7_6
  5. Upgrade

    Upgrade redhat/libvirt to a version that resolves this vulnerability.

    Fixed in 4.10.1
  6. Upgrade

    Upgrade redhat/libvirt to a version that resolves this vulnerability.

    Fixed in 5.4.1
  7. Upgrade

    Upgrade debian/libvirt to 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
  8. Upgrade

    Upgrade alpine/libvirt to a version that resolves this vulnerability.

    Fixed in 5.5.0-r0
  9. Upgrade

    Upgrade libvirt to a version that resolves this vulnerability.

    Fixed in 4.10.1
  10. Upgrade

    Upgrade libvirt to a version that resolves this vulnerability.

    Fixed in 5.4.1
  11. 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

Jun 20, 2019
CVE Published
12:00 PM
Jul 30, 2019
CVE Published
via MITRE·10:14 PM
Data Sourced
via MITRE·10:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2019-10161?

CVE-2019-10161 is a vulnerability discovered in libvirtd before versions 4.10.1 and 5.4.1.

2

What is the severity of CVE-2019-10161?

The severity of CVE-2019-10161 is high with a CVSS score of 8.8.

3

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.

4

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.

5

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203