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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-07 · Modified: 2026-11-25
- Aliases: UBUNTU-CVE-2026-61477, DEBIAN-CVE-2026-61477
- Record: https://cvemate.com/vulnerability/CVE-2026-61477 · JSON: https://cvemate.com/vulnerability/CVE-2026-61477/json

## Description

```text
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.
```

## Signals

- CVSS: 2.3 low (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.205%, percentile 11.02%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libvirt (Debian): All versions (No fix recorded) \| \< 11.3.0-3+deb13u3 \| \< 12.6.0-1
- ubuntu libvirt (Ubuntu): All versions (No fix recorded) \| \< 1.3.1-1ubuntu10.31+esm1 \| \< 4.0.0-1ubuntu8.21+esm1 \| \< 6.0.0-0ubuntu8.20+esm1 \| \< 8.0.0-1ubuntu7.19 \| \< 10.0.0-2ubuntu8.16 \| \< 12.0.0-1ubuntu5.3
- ubuntu libvirt-hwe (Ubuntu): \< 12.0.0-1ubuntu5.5

## References

- <https://access.redhat.com/security/cve/CVE-2026-61477>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2512066>
- <https://gitlab.com/libvirt/libvirt/-/commit/3cfc77963b512d809348fca07f97fe924fac9a05>
- <https://ubuntu.com/security/CVE-2026-61477>
- <https://www.cve.org/CVERecord?id=CVE-2026-61477>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2512068>
- <https://ubuntu.com/security/notices/USN-8652-1>
- <https://ubuntu.com/security/notices/USN-8833-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-61477>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61477>

---

Data as of 2026-12-05T04:12:05.002Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
