Bug 2512066 (CVE-2026-61477) - CVE-2026-61477 libvirt: libvirt: newline injection in network XML DNS TXT/SRV fields allows dnsmasq config directive injection
Summary: CVE-2026-61477 libvirt: libvirt: newline injection in network XML DNS TXT/SRV...
Keywords:
Status: NEW
Alias: CVE-2026-61477
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2512068
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-06 14:34 UTC by OSIDB Bzimport
Modified: 2026-08-07 14:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-06 14:34:38 UTC
A flaw was found in libvirt. The network XML parser accepts XML numeric character references for line breaks (
 / 
) in DNS TXT record value attributes and SRV record domain/target attributes without sanitization. The network driver writes these values directly into the line-oriented dnsmasq configuration file as txt-record= or srv-host= directives. An embedded newline terminates the intended directive and begins a new one under attacker control (e.g., dhcp-script=/bin/sh -c '<cmd>'), which dnsmasq executes as root when the virtual network is started. Under the default libvirt deployment model, read-write access to the libvirt socket is already root-equivalent, and the <dnsmasq:options> raw namespace already provides a documented mechanism for arbitrary directive injection, making this a hardening issue only. However, under non-default polkit fine-grained access control configurations that grant only network.write and network.start permissions, this could represent a privilege boundary violation.


Note You need to log in before you can comment on or make changes to this bug.