Skip to content
OpenAdvisories
Low · 2.3 CVE-2026-61477 EUVD-2026-54487GHSA-f6jp-rhmm-v59g

Libvirt: libvirt: newline injection in network xml dns txt/srv fields allows dnsmasq config directive injection

Published Aug 7, 2026 · Updated Nov 6, 2026 · Assigned by redhat

Description

An injection vulnerability was found in libvirt's virtual network driver. The network XML parser does not strip newline characters from DNS TXT record value attributes and SRV record domain/target attributes. These values are written verbatim into the dnsmasq configuration file generated by the network driver, allowing a user with permission to define virtual networks to inject arbitrary dnsmasq configuration directives such as dhcp-script, leading to arbitrary command execution as root.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux for NVIDIA 26 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libvirt 12.6.0-1 —
Debian 13 libvirt 11.3.0-3+deb13u3 —
Debian 12 libvirt No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libvirt 12.0.0-1ubuntu5.3 USN-8652-1
Ubuntu 26.04 LTS libvirt-hwe 12.0.0-1ubuntu5.5 USN-8833-1
Ubuntu 24.04 LTS libvirt 10.0.0-2ubuntu8.16 USN-8652-1
Ubuntu 22.04 LTS libvirt 8.0.0-1ubuntu7.19 USN-8652-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libvirt 6.0.0-0ubuntu8.20+esm1 USN-8652-1
Ubuntu Pro 18.04 LTS libvirt 4.0.0-1ubuntu8.21+esm1 USN-8652-1
Ubuntu Pro 16.04 LTS libvirt 1.3.1-1ubuntu10.31+esm1 USN-8652-1
Ubuntu Pro 14.04 LTS libvirt 1.2.2-0ubuntu13.1.28+esm2 USN-8652-1
ReleasePackageFixed inAdvisory
SLES 15 SP7 libvirt 11.0.0-150700.4.27.1 SUSE-SU-2026:3939-1
SLES 15 SP6 libvirt 10.0.0-150600.8.18.1 SUSE-SU-2026:4010-1
SLES 15 SP5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLES 15 SP4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLES 12 SP5 libvirt 5.1.0-13.48.1 SUSE-SU-2026:4141-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libvirt 11.4.0-160000.5.1 SUSE-SU-2026:23603-1
SLES for SAP 15 SP6 libvirt 10.0.0-150600.8.18.1 SUSE-SU-2026:4010-1
SLES for SAP 15 SP5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLES for SAP 15 SP4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLES 16.0 libvirt 11.4.0-160000.5.1 SUSE-SU-2026:23603-1
SLE Micro 6.2 libvirt 11.4.0-160000.5.1 SUSE-SU-2026:23460-1
SLE Micro 6.1 libvirt 10.0.0-slfo.1.1_3.1 SUSE-SU-2026:23515-1
SLE Micro 6.0 libvirt 10.0.0-5.1 SUSE-SU-2026:23445-1
SLE Micro 5.5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLE Micro 5.4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLE Micro 5.3 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLE HPC 15 SP5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLE HPC 15 SP4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 libvirt 11.4.0-160000.5.1 openSUSE-SU-2026:21738-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libvirt +30 4.5.0-36.amzn2.3.3 ALAS2-2026-3873

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libvirt 11.9.0-1 —

Advisories 13

References