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

- Severity: Low 2.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 6% of CVEs (2026-11-30)
- Published: 2026-08-07T14:09:23.058Z
- Modified: 2026-11-25T17:17:56.747Z
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- libvirt: no versions given
- virt:rhel/libvirt: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-61477> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2512066> (issue-tracking)
- <https://gitlab.com/libvirt/libvirt/-/commit/3cfc77963b512d809348fca07f97fe924fac9a05>

## Sources

- CVE List: [CVE-2026-61477](https://www.cve.org/CVERecord?id=CVE-2026-61477), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-61477](https://nvd.nist.gov/vuln/detail/CVE-2026-61477), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-61477 · Whole record: https://cve.day/CVE-2026-61477.json · Rebuilt by cve.day 2026-11-25T23:18:10.879Z
