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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libvirt | no fix listed | DEBIAN-CVE-2026-61477 |
| Debian:13 | libvirt | 11.3.0-3+deb13u3 | DEBIAN-CVE-2026-61477 |
| Debian:14 | libvirt | 12.6.0-1 | DEBIAN-CVE-2026-61477 |
| Ubuntu:22.04:LTS | libvirt | 8.0.0-1ubuntu7.19 | UBUNTU-CVE-2026-61477 |
| Ubuntu:22.04:LTS | libvirt | 8.0.0-1ubuntu7.19 | USN-8652-1 |
| Ubuntu:24.04:LTS | libvirt | 10.0.0-2ubuntu8.16 | USN-8652-1 |
| Ubuntu:24.04:LTS | libvirt | 10.0.0-2ubuntu8.16 | UBUNTU-CVE-2026-61477 |
| Ubuntu:26.04:LTS | libvirt | 12.0.0-1ubuntu5.3 | USN-8652-1 |
| Ubuntu:26.04:LTS | libvirt | 12.0.0-1ubuntu5.3 | UBUNTU-CVE-2026-61477 |
| Ubuntu:26.04:LTS | libvirt-hwe | 12.0.0-1ubuntu5.5 | USN-8833-1 |
| Ubuntu:26.04:LTS | libvirt-hwe | 12.0.0-1ubuntu5.5 | UBUNTU-CVE-2026-61477 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux for NVIDIA 26 | see references |
Weakness: CWE-93 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
References
- https://access.redhat.com/security/cve/CVE-2026-61477 vdb-entry, x_refsource_REDHAT
- RHBZ#2512066 issue-tracking, x_refsource_REDHAT
- https://gitlab.com/libvirt/libvirt/-/commit/3cfc77963b512d809348fca07f97fe924fac9a05