Skip to content
Fencer Vulns
high 7.8

CVE-2018-6764 json

util/virlog.c in libvirt does not properly determine the hostname on LXC container startup, which allows local guest OS users to bypass an…

published 2018-02-23 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-18511

cvss
7.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 25%
public exploits
0
none known

Summary

util/virlog.c in libvirt does not properly determine the hostname on LXC container startup, which allows local guest OS users to bypass an intended container protection mechanism and execute arbitrary commands via a crafted NSS module.

Patch / fix

  • libvirt Debian 14, Debian 13, Debian 12 4.0.0-2

debian advisories DEBIAN-CVE-2018-6764

  • libvirt Ubuntu 16.04 LTS 1.3.1-1ubuntu10.19

ubuntu advisories UBUNTU-CVE-2018-6764

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libvirt RHEL 7 4.5.0-10.el7
  • libvirt-nss RHEL 7 4.5.0-10.el7
  • libvirt-libs RHEL 7 4.5.0-10.el7
  • libvirt-admin RHEL 7 4.5.0-10.el7
  • libvirt-client RHEL 7 4.5.0-10.el7
  • libvirt-daemon RHEL 7 4.5.0-10.el7
  • libvirt-daemon-kvm RHEL 7 4.5.0-10.el7
  • libvirt-daemon-lxc RHEL 7 4.5.0-10.el7

red hat advisories RHSA-2018:3113

  • libvirt SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +1 more 3.3.0-5.19.2
  • virt-manager SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 1.4.1-5.8.1
  • libvirt SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2, SLES 12 SP2 +3 more 2.0.0-27.34.1

suse advisories SUSE-SU-2018:0920-1SUSE-SU-2018:0861-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-6764 updated cvss 5.0

libvirt: guest could inject executable code via libnss_dns.so loaded by libvirt_lxc before init

  • Red Hat Enterprise Linux Client (v. 7) libvirt 4.5.0-10.el7, libvirt-libs 4.5.0-10.el7, libvirt-client 4.5.0-10.el7, libvirt-daemon 4.5.0-10.el7, libvirt-daemon-kvm 4.5.0-10.el7, libvirt-bash-completion 4.5.0-10.el7, +18 more Red Hat Enterprise Linux Client Optional (v. 7) libvirt-nss 4.5.0-10.el7, libvirt-admin 4.5.0-10.el7, libvirt-daemon-lxc 4.5.0-10.el7, libvirt-login-shell 4.5.0-10.el7, libvirt-lock-sanlock 4.5.0-10.el7 Red Hat Enterprise Linux ComputeNode (v. 7) libvirt 4.5.0-10.el7, libvirt-libs 4.5.0-10.el7, libvirt-client 4.5.0-10.el7, libvirt-bash-completion 4.5.0-10.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) libvirt 4.5.0-10.el7, libvirt-nss 4.5.0-10.el7, libvirt-admin 4.5.0-10.el7, libvirt-daemon 4.5.0-10.el7, libvirt-daemon-kvm 4.5.0-10.el7, libvirt-daemon-lxc 4.5.0-10.el7, +20 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) libvirt 4.5.0-10.el7, libvirt-libs 4.5.0-10.el7, libvirt-client 4.5.0-10.el7, libvirt-daemon 4.5.0-10.el7, libvirt-daemon-kvm 4.5.0-10.el7, libvirt-bash-completion 4.5.0-10.el7, +16 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) libvirt 4.5.0-10.el7, libvirt-nss 4.5.0-10.el7, libvirt-libs 4.5.0-10.el7, libvirt-admin 4.5.0-10.el7, libvirt-client 4.5.0-10.el7, libvirt-daemon 4.5.0-10.el7, +21 more
    +4 more products
    Red Hat Enterprise Linux Server (v. 7) libvirt 4.5.0-10.el7, libvirt-libs 4.5.0-10.el7, libvirt-client 4.5.0-10.el7, libvirt-daemon 4.5.0-10.el7, libvirt-daemon-kvm 4.5.0-10.el7, libvirt-bash-completion 4.5.0-10.el7, +18 more Red Hat Enterprise Linux Server Optional (v. 7) libvirt-nss 4.5.0-10.el7, libvirt-admin 4.5.0-10.el7, libvirt-daemon-lxc 4.5.0-10.el7, libvirt-login-shell 4.5.0-10.el7, libvirt-lock-sanlock 4.5.0-10.el7 Red Hat Enterprise Linux Workstation (v. 7) libvirt 4.5.0-10.el7, libvirt-libs 4.5.0-10.el7, libvirt-client 4.5.0-10.el7, libvirt-daemon 4.5.0-10.el7, libvirt-daemon-kvm 4.5.0-10.el7, libvirt-bash-completion 4.5.0-10.el7, +18 more Red Hat Enterprise Linux Workstation Optional (v. 7) libvirt-nss 4.5.0-10.el7, libvirt-admin 4.5.0-10.el7, libvirt-daemon-lxc 4.5.0-10.el7, libvirt-login-shell 4.5.0-10.el7, libvirt-lock-sanlock 4.5.0-10.el7
    fixed: vendor fix RHSA-2018:3113
  • Red Hat Enterprise Linux 5 libvirt Red Hat Enterprise Linux 6 libvirt, libvirt-client, libvirt-python, libvirt-lock-sanlock Red Hat Enterprise Linux 8 libvirt, libvirt-nss, libvirt-libs, libvirt-admin, libvirt-client, libvirt-daemon, +22 more Red Hat Storage 3 libvirt-lock-sanlock
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.33% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 7.8 CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.