Description
Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR.

Net::DNS::RR::OPT::EXTENDED_ERROR::_decompose parses the EXTRA-TEXT field of an EDNS EXTENDED-ERROR option (RFC 8914) by tokenising the raw bytes and passing the result to Perl's eval. There is some escaping done for $ and @, but not for backticks. This can be exploited for command execution if $pkt->edns->option('EXTENDED-ERROR') is called in array context, for example with a payload of {0:`"<command>"`} in EXTRA-TEXT.
Published: 2026-07-20
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Net::DNS::RR::OPT::EXTENDED_ERROR::_decompose tokenises the EXTRA‑TEXT field of an EDNS EXTENDED‑ERROR option and passes the result to Perl’s eval. Some escaping is performed for $ and @, but backticks are not escaped. When an application retrieves the EXTENDED‑ERROR option in array context, the eval is executed with the supplied payload. This classic command‑injection flaw (CWE‑78, CWE‑95) allows an attacker to execute arbitrary code on the host that processes the packet.

Affected Systems

The flaw resides in all releases of the NLNETLABS Net::DNS Perl library up through version 1.55. Any system that imports this library to parse DNS traffic and that processes EDNS EXTENDED‑ERROR options without additional safeguards is potentially vulnerable. The vendor’s fix is available as version 1.56, released through CPAN and the Net::DNS project’s distribution channels.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.8, indicating critical severity, while the EPSS score of less than 1 % implies a very low but non‑zero probability of exploitation in the wild. It is not currently listed in the CISA KEV catalog. Based on the description, it is inferred that the attack vector is network‑based: an adversary can craft a DNS query containing a malicious EXTENDED‑ERROR option with backticks and transmit it to the target. If the target’s application calls $pkt->edns->option('EXTENDED-ERROR') in array context, the embedded Perl eval will run the attacker’s command, giving full control over the host running Net::DNS.

Generated by OpenCVE AI on August 1, 2026 at 07:11 UTC.

Remediation

Vendor Solution

Upgrade to version 1.56 or later.


OpenCVE Recommended Actions

  • Upgrade the Net::DNS Perl library to version 1.56 or later via CPAN or the vendor’s release channels.
  • If an upgrade cannot be applied immediately, modify the application to avoid processing EDNS EXTENDED‑ERROR options in array context, or patch Net::DNS::RR::OPT::EXTENDED_ERROR::_decompose to escape backticks before evaluating the payload.
  • Use network filtering or intrusion detection rules to block or flag EDNS packets containing unusually large or malformed EXTRA‑TEXT fields, and monitor inbound DNS traffic for suspicious EXTENDED‑ERROR options.

Generated by OpenCVE AI on August 1, 2026 at 07:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-78
References
Metrics threat_severity

None

threat_severity

Critical


Tue, 28 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Nlnet Labs
Nlnet Labs net Dns
Vendors & Products Nlnet Labs
Nlnet Labs net Dns

Tue, 21 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 18:45:00 +0000

Type Values Removed Values Added
Description Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR. Net::DNS::RR::OPT::EXTENDED_ERROR::_decompose parses the EXTRA-TEXT field of an EDNS EXTENDED-ERROR option (RFC 8914) by tokenising the raw bytes and passing the result to Perl's eval. There is some escaping done for $ and @, but not for backticks. This can be exploited for command execution if $pkt->edns->option('EXTENDED-ERROR') is called in array context, for example with a payload of {0:`"<command>"`} in EXTRA-TEXT.
Title Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR
Weaknesses CWE-95
References

Subscriptions

Nlnet Labs Net Dns
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-21T18:55:09.291Z

Reserved: 2026-07-19T10:13:00.756Z

Link: CVE-2026-64193

cve-icon Vulnrichment

Updated: 2026-07-20T20:30:04.101Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Critical

Publid Date: 2026-07-20T17:54:42Z

Links: CVE-2026-64193 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T07:15:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')