Search

Find a vulnerability

Search criteria

    4 vulnerabilities found for Net::DNS by NLNETLABS

    CVE-2026-64194 (GCVE-0-2026-64194)

    Vulnerability from nvd – Published: 2026-07-20 17:55 – Updated: 2026-07-20 20:30
    VLAI
    Title
    Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains
    Summary
    Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains. Net::DNS::DomainName::decode follows RFC 1035 compression pointers by recursing into itself with no depth limit. It is possible to construct a name which saturates the call stack (at least with larger TCP responses), leading to a potential Denial of Service. The guard `$link < $offset` prevents forward and circular chains, but still allows arbitrarily long backward chains. The per-offset cache (`$cache`) is populated at the start of each call and short-circuits only re-traverses of the same offset - the initial descent through a fresh chain still recurses at full depth. A crafted packet can chain two-byte compression pointers so that each one points two bytes earlier than the previous, producing a chain length of `offset / 2`. For the 14-bit pointer field (max offset 16383) this gives up to ~8191 recursive frames. For a TCP DNS message the limit is the 16-bit length field (~32767 frames). Perl's default C stack handles only a few thousand frames; beyond that the process receives SIGSEGV or similar, which is a denial-of-service for any application parsing untrusted DNS data. The vulnerability is triggered by `Net::DNS::Packet->new(\$wire)` i.e. any point where the library decodes a DNS message from the network.
    Severity
    No CVSS data available.
    CWE
    Assigner
    Impacted products
    Vendor Product Version
    NLNETLABS Net::DNS Affected: 0 , ≤ 1.55 (custom)
    Create a notification for this product.
    Credits
    Steffen Ullrich
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2026-07-20T20:30:05.425Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/07/20/13"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://cpan.org/modules",
              "defaultStatus": "unaffected",
              "packageName": "Net-DNS",
              "product": "Net::DNS",
              "programFiles": [
                "lib/Net/DNS/DomainName.pm"
              ],
              "programRoutines": [
                {
                  "name": "Net::DNS::DomainName::decode"
                }
              ],
              "repo": "https://www.net-dns.org/svn/net-dns/",
              "vendor": "NLNETLABS",
              "versions": [
                {
                  "lessThanOrEqual": "1.55",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Steffen Ullrich"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains.\n\nNet::DNS::DomainName::decode follows RFC 1035 compression pointers by recursing into itself with no depth limit. It is possible to construct a name which saturates the call stack (at least with larger TCP responses), leading to a potential Denial of Service.\n\nThe guard `$link \u003c $offset` prevents forward and circular chains, but still allows arbitrarily long backward chains. The per-offset cache (`$cache`) is populated at the start of each call and short-circuits only re-traverses of the same offset - the initial descent through a fresh chain still recurses at full depth.\n\nA crafted packet can chain two-byte compression pointers so that each one points two bytes earlier than the previous, producing a chain length of `offset / 2`. For the 14-bit pointer field (max offset 16383) this gives up to ~8191 recursive frames. For a TCP DNS message the limit is the 16-bit length field (~32767 frames). Perl\u0027s default C stack handles only a few thousand frames; beyond that the process receives SIGSEGV or similar, which is a denial-of-service for any application parsing untrusted DNS data.\n\nThe vulnerability is triggered by `Net::DNS::Packet-\u003enew(\\$wire)` i.e. any point where the library decodes a DNS message from the network."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-20T17:55:05.169Z",
            "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            "shortName": "CPANSec"
          },
          "references": [
            {
              "url": "https://www.net-dns.org/blog/#release-candidate-for-netdns-1.56"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://rt.cpan.org/Ticket/Display.html?id=179946"
            },
            {
              "tags": [
                "release-notes"
              ],
              "url": "https://metacpan.org/release/NLNETLABS/Net-DNS-1.55_01/changes"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to version 1.56 or later."
            }
          ],
          "source": {
            "discovery": "UNKNOWN"
          },
          "timeline": [
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Issue reported publicly via RT."
            },
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Version 1.55_01 (release candidate for version 1.56) published on CPAN."
            },
            {
              "lang": "en",
              "time": "2026-07-18T00:00:00.000Z",
              "value": "Version 1.56 published on CPAN."
            }
          ],
          "title": "Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains",
          "x_generator": {
            "engine": "cpansec-cna-tool 0.1"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "assignerShortName": "CPANSec",
        "cveId": "CVE-2026-64194",
        "datePublished": "2026-07-20T17:55:05.169Z",
        "dateReserved": "2026-07-19T10:13:00.756Z",
        "dateUpdated": "2026-07-20T20:30:05.425Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-64193 (GCVE-0-2026-64193)

    Vulnerability from nvd – Published: 2026-07-20 17:54 – Updated: 2026-07-20 20:30
    VLAI
    Title
    Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR
    Summary
    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.
    Severity
    No CVSS data available.
    CWE
    • CWE-95 - Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
    Assigner
    Impacted products
    Vendor Product Version
    NLNETLABS Net::DNS Affected: 0 , ≤ 1.55 (custom)
    Create a notification for this product.
    Credits
    Steffen Ullrich
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2026-07-20T20:30:04.101Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/07/20/12"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://cpan.org/modules",
              "defaultStatus": "unaffected",
              "packageName": "Net-DNS",
              "product": "Net::DNS",
              "programFiles": [
                "lib/Net/DNS/RR/OPT.pm"
              ],
              "programRoutines": [
                {
                  "name": "Net::DNS::RR::OPT::EXTENDED_ERROR::_decompose"
                }
              ],
              "repo": "https://www.net-dns.org/svn/net-dns/",
              "vendor": "NLNETLABS",
              "versions": [
                {
                  "lessThanOrEqual": "1.55",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Steffen Ullrich"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR.\n\nNet::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\u0027s eval. There is some escaping done for $ and @, but not for backticks. This can be exploited for command execution if $pkt-\u003eedns-\u003eoption(\u0027EXTENDED-ERROR\u0027) is called in array context, for example with a payload of {0:`\"\u003ccommand\u003e\"`} in EXTRA-TEXT."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-95",
                  "description": "CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-20T17:54:42.087Z",
            "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            "shortName": "CPANSec"
          },
          "references": [
            {
              "url": "https://www.net-dns.org/blog/#release-candidate-for-netdns-1.56"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://rt.cpan.org/Ticket/Display.html?id=179945"
            },
            {
              "tags": [
                "release-notes"
              ],
              "url": "https://metacpan.org/release/NLNETLABS/Net-DNS-1.55_01/changes"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to version 1.56 or later."
            }
          ],
          "source": {
            "discovery": "UNKNOWN"
          },
          "timeline": [
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Issue reported publicly via RT."
            },
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Version 1.55_01 (release candidate for version 1.56) published on CPAN."
            },
            {
              "lang": "en",
              "time": "2026-07-18T00:00:00.000Z",
              "value": "Version 1.56 published on CPAN."
            }
          ],
          "title": "Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR",
          "x_generator": {
            "engine": "cpansec-cna-tool 0.1"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "assignerShortName": "CPANSec",
        "cveId": "CVE-2026-64193",
        "datePublished": "2026-07-20T17:54:42.087Z",
        "dateReserved": "2026-07-19T10:13:00.756Z",
        "dateUpdated": "2026-07-20T20:30:04.101Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-64194 (GCVE-0-2026-64194)

    Vulnerability from cvelistv5 – Published: 2026-07-20 17:55 – Updated: 2026-07-20 20:30
    VLAI
    Title
    Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains
    Summary
    Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains. Net::DNS::DomainName::decode follows RFC 1035 compression pointers by recursing into itself with no depth limit. It is possible to construct a name which saturates the call stack (at least with larger TCP responses), leading to a potential Denial of Service. The guard `$link < $offset` prevents forward and circular chains, but still allows arbitrarily long backward chains. The per-offset cache (`$cache`) is populated at the start of each call and short-circuits only re-traverses of the same offset - the initial descent through a fresh chain still recurses at full depth. A crafted packet can chain two-byte compression pointers so that each one points two bytes earlier than the previous, producing a chain length of `offset / 2`. For the 14-bit pointer field (max offset 16383) this gives up to ~8191 recursive frames. For a TCP DNS message the limit is the 16-bit length field (~32767 frames). Perl's default C stack handles only a few thousand frames; beyond that the process receives SIGSEGV or similar, which is a denial-of-service for any application parsing untrusted DNS data. The vulnerability is triggered by `Net::DNS::Packet->new(\$wire)` i.e. any point where the library decodes a DNS message from the network.
    Severity
    No CVSS data available.
    CWE
    Assigner
    Impacted products
    Vendor Product Version
    NLNETLABS Net::DNS Affected: 0 , ≤ 1.55 (custom)
    Create a notification for this product.
    Credits
    Steffen Ullrich
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2026-07-20T20:30:05.425Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/07/20/13"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://cpan.org/modules",
              "defaultStatus": "unaffected",
              "packageName": "Net-DNS",
              "product": "Net::DNS",
              "programFiles": [
                "lib/Net/DNS/DomainName.pm"
              ],
              "programRoutines": [
                {
                  "name": "Net::DNS::DomainName::decode"
                }
              ],
              "repo": "https://www.net-dns.org/svn/net-dns/",
              "vendor": "NLNETLABS",
              "versions": [
                {
                  "lessThanOrEqual": "1.55",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Steffen Ullrich"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains.\n\nNet::DNS::DomainName::decode follows RFC 1035 compression pointers by recursing into itself with no depth limit. It is possible to construct a name which saturates the call stack (at least with larger TCP responses), leading to a potential Denial of Service.\n\nThe guard `$link \u003c $offset` prevents forward and circular chains, but still allows arbitrarily long backward chains. The per-offset cache (`$cache`) is populated at the start of each call and short-circuits only re-traverses of the same offset - the initial descent through a fresh chain still recurses at full depth.\n\nA crafted packet can chain two-byte compression pointers so that each one points two bytes earlier than the previous, producing a chain length of `offset / 2`. For the 14-bit pointer field (max offset 16383) this gives up to ~8191 recursive frames. For a TCP DNS message the limit is the 16-bit length field (~32767 frames). Perl\u0027s default C stack handles only a few thousand frames; beyond that the process receives SIGSEGV or similar, which is a denial-of-service for any application parsing untrusted DNS data.\n\nThe vulnerability is triggered by `Net::DNS::Packet-\u003enew(\\$wire)` i.e. any point where the library decodes a DNS message from the network."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-20T17:55:05.169Z",
            "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            "shortName": "CPANSec"
          },
          "references": [
            {
              "url": "https://www.net-dns.org/blog/#release-candidate-for-netdns-1.56"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://rt.cpan.org/Ticket/Display.html?id=179946"
            },
            {
              "tags": [
                "release-notes"
              ],
              "url": "https://metacpan.org/release/NLNETLABS/Net-DNS-1.55_01/changes"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to version 1.56 or later."
            }
          ],
          "source": {
            "discovery": "UNKNOWN"
          },
          "timeline": [
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Issue reported publicly via RT."
            },
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Version 1.55_01 (release candidate for version 1.56) published on CPAN."
            },
            {
              "lang": "en",
              "time": "2026-07-18T00:00:00.000Z",
              "value": "Version 1.56 published on CPAN."
            }
          ],
          "title": "Net::DNS versions through 1.55 for Perl allow Denial of Service via deep DNS compression pointer chains",
          "x_generator": {
            "engine": "cpansec-cna-tool 0.1"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "assignerShortName": "CPANSec",
        "cveId": "CVE-2026-64194",
        "datePublished": "2026-07-20T17:55:05.169Z",
        "dateReserved": "2026-07-19T10:13:00.756Z",
        "dateUpdated": "2026-07-20T20:30:05.425Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-64193 (GCVE-0-2026-64193)

    Vulnerability from cvelistv5 – Published: 2026-07-20 17:54 – Updated: 2026-07-20 20:30
    VLAI
    Title
    Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR
    Summary
    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.
    Severity
    No CVSS data available.
    CWE
    • CWE-95 - Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
    Assigner
    Impacted products
    Vendor Product Version
    NLNETLABS Net::DNS Affected: 0 , ≤ 1.55 (custom)
    Create a notification for this product.
    Credits
    Steffen Ullrich
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2026-07-20T20:30:04.101Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/07/20/12"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://cpan.org/modules",
              "defaultStatus": "unaffected",
              "packageName": "Net-DNS",
              "product": "Net::DNS",
              "programFiles": [
                "lib/Net/DNS/RR/OPT.pm"
              ],
              "programRoutines": [
                {
                  "name": "Net::DNS::RR::OPT::EXTENDED_ERROR::_decompose"
                }
              ],
              "repo": "https://www.net-dns.org/svn/net-dns/",
              "vendor": "NLNETLABS",
              "versions": [
                {
                  "lessThanOrEqual": "1.55",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Steffen Ullrich"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR.\n\nNet::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\u0027s eval. There is some escaping done for $ and @, but not for backticks. This can be exploited for command execution if $pkt-\u003eedns-\u003eoption(\u0027EXTENDED-ERROR\u0027) is called in array context, for example with a payload of {0:`\"\u003ccommand\u003e\"`} in EXTRA-TEXT."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-95",
                  "description": "CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-20T17:54:42.087Z",
            "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            "shortName": "CPANSec"
          },
          "references": [
            {
              "url": "https://www.net-dns.org/blog/#release-candidate-for-netdns-1.56"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://rt.cpan.org/Ticket/Display.html?id=179945"
            },
            {
              "tags": [
                "release-notes"
              ],
              "url": "https://metacpan.org/release/NLNETLABS/Net-DNS-1.55_01/changes"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to version 1.56 or later."
            }
          ],
          "source": {
            "discovery": "UNKNOWN"
          },
          "timeline": [
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Issue reported publicly via RT."
            },
            {
              "lang": "en",
              "time": "2026-07-10T00:00:00.000Z",
              "value": "Version 1.55_01 (release candidate for version 1.56) published on CPAN."
            },
            {
              "lang": "en",
              "time": "2026-07-18T00:00:00.000Z",
              "value": "Version 1.56 published on CPAN."
            }
          ],
          "title": "Net::DNS versions through 1.55 for Perl allow remote execution injection via EDNS EXTENDED ERROR",
          "x_generator": {
            "engine": "cpansec-cna-tool 0.1"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "assignerShortName": "CPANSec",
        "cveId": "CVE-2026-64193",
        "datePublished": "2026-07-20T17:54:42.087Z",
        "dateReserved": "2026-07-19T10:13:00.756Z",
        "dateUpdated": "2026-07-20T20:30:04.101Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }