Bug 2502954 (CVE-2026-64193) - CVE-2026-64193 Net::DNS: Net::DNS: Arbitrary code execution via EDNS EXTENDED ERROR handling
Summary: CVE-2026-64193 Net::DNS: Net::DNS: Arbitrary code execution via EDNS EXTENDED...
Keywords:
Status: NEW
Alias: CVE-2026-64193
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2509246 2509247
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-20 19:02 UTC by OSIDB Bzimport
Modified: 2026-07-30 10:56 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-20 19:02:08 UTC
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.

Comment 2 Tomas Hoger 2026-07-30 09:51:17 UTC
Upstream patch:
https://metacpan.org/release/NLNETLABS/Net-DNS-1.55_01/diff/NLNETLABS/Net-DNS-1.55/lib/Net/DNS/RR/OPT.pm

It combines fixes for two upstream bug reports:
https://rt.cpan.org/Public/Bug/Display.html?id=179945 (this issues)
https://rt.cpan.org/Public/Bug/Display.html?id=179946 (CVE-2026-64194)

The eval was first introduced to _decompose() in Net::DNS::RR::OPT::EXTENDED_ERROR in version 1.37, so earlier versions are unaffected:
https://metacpan.org/release/NLNETLABS/Net-DNS-1.37/diff/NLNETLABS/Net-DNS-1.36/lib/Net/DNS/RR/OPT.pm


Note You need to log in before you can comment on or make changes to this bug.