REDHAT-BUG-2512066: Low severity libvirt libvirt vulnerability
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2512066?
The severity of REDHAT-BUG-2512066 is low.
What vulnerability does REDHAT-BUG-2512066 describe?
REDHAT-BUG-2512066 describes a flaw in libvirt where the network XML parser does not sanitize XML numeric character references for line breaks in DNS TXT and SRV record attributes.
How does REDHAT-BUG-2512066 impact systems using libvirt?
REDHAT-BUG-2512066 can lead to improper handling of DNS records, potentially affecting the configuration of dnsmasq.
How can I mitigate the risks associated with REDHAT-BUG-2512066?
To mitigate the risks of REDHAT-BUG-2512066, ensure that input to the network XML parser is sanitized before processing.
When was REDHAT-BUG-2512066 published?
REDHAT-BUG-2512066 was published on August 6, 2026.