CVE-2026-61477

Libvirt: libvirt: newline injection in network xml dns txt/srv fields allows dnsmasq config directive injection

Published Aug 7, 2026 CVSS 3.1 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An injection vulnerability in libvirt's network XML parser allows newline characters to be inserted into DNS TXT and SRV record values, which are then written verbatim into dnsmasq’s configuration file, enabling an attacker who can define or modify virtual networks to inject arbitrary dnsmasq directives such as dhcp-script and obtain root command execution. This flaw corresponds to CWE‑93 and permits arbitrary command execution when the attacker has permission to create or alter virtual network definitions.

Affected Systems

The vulnerability affects Red Hat Enterprise Linux releases 6, 7, 8, 9, 10 and Red Hat Enterprise Linux for NVIDIA 26; it resides in libvirt’s virtual network driver and is present in all versions of these distributions that include libvirt.

Risk and Exploitability

The CVSS base score is 2.3, indicating low severity, and EPSS is not available; the flaw is not listed in CISA KEV. The attack requires the ability to edit virtual network definitions, which is typically restricted to privileged users, so the risk is moderate for environments where non‑privileged users can create or alter network configurations. No official workaround exists, and a patch is not yet available, so mitigation relies on restricting network definition rights and monitoring for unauthorized dnsmasq configuration changes until an updated libvirt release is deployed.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.


OpenCVE Recommended Actions

  • Limit privileges for creating or editing virtual network definitions to trusted administrators only.
  • Disable or monitor dnsmasq configuration directives by removing harmful options from libvirt network XML or using alternative DNS solutions.
  • Apply an updated libvirt package from Red Hat once a fix is released.

Generated by OpenCVE AI on August 7, 2026 at 15:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8833-1 libvirt vulnerabilities
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
First Time appeared Libvirt
Libvirt libvirt
Redhat enterprise Linux For Nvidia 26
Vendors & Products Libvirt
Libvirt libvirt
Redhat enterprise Linux For Nvidia 26
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Libvirt: libvirt: newline injection in network xml dns txt/srv fields allows dnsmasq config directive injection
First Time appeared Redhat
Redhat enterprise Linux
Redhat enterprise Linux Nvidia
Weaknesses CWE-93
CPEs cpe:/a:redhat:enterprise_linux_nvidia:
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat enterprise Linux Nvidia
References
Metrics cvssV3_1

{'score': 2.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 6, 2026, 7:08 PM
Reserved
Jul 9, 2026, 4:18 PM
Status
Awaiting Analysis
Published
Aug 7, 2026, 2:17 PM
Modified
Nov 6, 2026, 7:17 PM
Severity
Low
Public date
Aug 6, 2026, 2:16 PM