cve.bz

CVE-2019-10166 redhat: Improper Access Control

7.8 highEPSS 0.5%

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

On this page
It was discovered that libvirtd, versions 4.x.x before 4.10.1 and 5.x.x before 5.4.1, would permit readonly clients to use the virDomainManagedSaveDefineXML() API, which would permit them to modify managed save state files. If a managed save had already been created by a privileged user, a local attacker could modify this file such that libvirtd would execute an arbitrary program when the domain was resumed.

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; 41st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
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-10166 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-10166?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-10166?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-10166 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:libvirtfrom 4.0.0 before 4.10.1
redhat:libvirtfrom 5.0.0 before 5.4.1
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0
redhat:virtualization4.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libvirt5.0.0-4DEBIAN-CVE-2019-10166
Ubuntu16.04:LTSlibvirt1.3.1-1ubuntu10.27USN-4047-1
Ubuntu18.04:LTSlibvirt4.0.0-1ubuntu8.12UBUNTU-CVE-2019-10166 USN-4047-1
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
23 more for Red Hat in the JSON and on Red Hat's page.
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
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-10166

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.

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 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 Enterprise Linux 6libvirtNot 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-10166.

Attack patterns (CAPEC)

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