Vulnerability · Published Aug 7, 2026 · Assigned by redhat

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

Low 2.3

In plain English

A low-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.3Low
Exploit odds (30 days)0.2%top 94.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libvirtno fix listedDEBIAN-CVE-2026-61477
Debian:13libvirt11.3.0-3+deb13u3DEBIAN-CVE-2026-61477
Debian:14libvirt12.6.0-1DEBIAN-CVE-2026-61477
Ubuntu:22.04:LTSlibvirt8.0.0-1ubuntu7.19UBUNTU-CVE-2026-61477
Ubuntu:22.04:LTSlibvirt8.0.0-1ubuntu7.19USN-8652-1
Ubuntu:24.04:LTSlibvirt10.0.0-2ubuntu8.16USN-8652-1
Ubuntu:24.04:LTSlibvirt10.0.0-2ubuntu8.16UBUNTU-CVE-2026-61477
Ubuntu:26.04:LTSlibvirt12.0.0-1ubuntu5.3USN-8652-1
Ubuntu:26.04:LTSlibvirt12.0.0-1ubuntu5.3UBUNTU-CVE-2026-61477
Ubuntu:26.04:LTSlibvirt-hwe12.0.0-1ubuntu5.5USN-8833-1
Ubuntu:26.04:LTSlibvirt-hwe12.0.0-1ubuntu5.5UBUNTU-CVE-2026-61477

Affected products (as reported)

Weakness: CWE-93 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N

References