An injection vulnerability was found in libvirt's virtual network driver. (CVE-2026-61477)
An injection vulnerability exists in libvirt's virtual network driver due to improper handling of newline characters in DNS TXT and SRV record attributes. This flaw allows users with permission to define virtual networks to inject arbitrary dnsmasq configuration directives, potentially leading to arbitrary command execution as root. The vulnerability has a medium severity rating with a CVSS score of 2.3. A patch is available to address this issue.
AI Analysis
Technical Summary
CVE-2026-61477 is an injection vulnerability in libvirt's virtual network driver. The network XML parser fails to strip newline characters from DNS TXT record value attributes and SRV record domain/target attributes. These unsanitized values are written directly into the dnsmasq configuration file generated by the network driver. This allows a user with permission to define virtual networks to inject arbitrary dnsmasq configuration directives such as dhcp-script, which can lead to arbitrary command execution with root privileges. The vulnerability is classified under CWE-93 (Improper Neutralization of CRLF Sequences).
Potential Impact
The vulnerability allows an attacker with permission to define virtual networks to inject arbitrary configuration directives into dnsmasq, potentially resulting in arbitrary command execution as root. The CVSS v3.1 base score is 2.3 (medium severity), reflecting local attack vector, low attack complexity, high privileges required, no user interaction, unchanged scope, no confidentiality or availability impact, and low integrity impact.
Mitigation Recommendations
A patch is available for this vulnerability. Users are advised to upgrade to fixed versions of libvirt as indicated by their vendor or distribution. No effective mitigation other than patching is currently available or meets Red Hat's criteria for ease of use and applicability. Users should apply the official fixes when they become available to prevent exploitation.
An injection vulnerability was found in libvirt's virtual network driver. (CVE-2026-61477)
Description
An injection vulnerability exists in libvirt's virtual network driver due to improper handling of newline characters in DNS TXT and SRV record attributes. This flaw allows users with permission to define virtual networks to inject arbitrary dnsmasq configuration directives, potentially leading to arbitrary command execution as root. The vulnerability has a medium severity rating with a CVSS score of 2.3. A patch is available to address this issue.
CVSS v3.1
Score 2.3low
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-61477 is an injection vulnerability in libvirt's virtual network driver. The network XML parser fails to strip newline characters from DNS TXT record value attributes and SRV record domain/target attributes. These unsanitized values are written directly into the dnsmasq configuration file generated by the network driver. This allows a user with permission to define virtual networks to inject arbitrary dnsmasq configuration directives such as dhcp-script, which can lead to arbitrary command execution with root privileges. The vulnerability is classified under CWE-93 (Improper Neutralization of CRLF Sequences).
Potential Impact
The vulnerability allows an attacker with permission to define virtual networks to inject arbitrary configuration directives into dnsmasq, potentially resulting in arbitrary command execution as root. The CVSS v3.1 base score is 2.3 (medium severity), reflecting local attack vector, low attack complexity, high privileges required, no user interaction, unchanged scope, no confidentiality or availability impact, and low integrity impact.
Mitigation Recommendations
A patch is available for this vulnerability. Users are advised to upgrade to fixed versions of libvirt as indicated by their vendor or distribution. No effective mitigation other than patching is currently available or meets Red Hat's criteria for ease of use and applicability. Users should apply the official fixes when they become available to prevent exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f6jp-rhmm-v59g
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-61477"]
- Database Specific Severity
- LOW
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a774333bf8831d539b465c6
Added to database: 08/08/2026, 14:54:43 UTC
Last enriched: 08/20/2026, 16:50:15 UTC
Last updated: 09/22/2026, 13:47:47 UTC
Views: 108
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.