OS Command Injection Affecting perl-Net-DNS-tests package, versions <0:1.56-1.amzn2023.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.44% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-PERLNETDNSTESTS-18909627
  • published18 Aug 2026
  • disclosed20 Jul 2026

Introduced: 20 Jul 2026

CVE-2026-64193  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 perl-Net-DNS-tests to version 0:1.56-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2026-2046.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-Net-DNS-tests package and not the perl-Net-DNS-tests package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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:&#34;&lt;command&gt;&#34;} in EXTRA-TEXT.

CVSS Base Scores

version 3.1