Read the docs

Predictable DNS query IDs in Net::DNS allow response forgery

Priority MEDIUM 42CWE-338Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Partial Red Hat: 3 fixed, 2 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

Summary

Net::DNS versions from 0.02 before 0.* and from 1.00 before 1.58 generate 16-bit DNS query IDs with Perl's rand() function. This use of a cryptographically weak pseudo-random number generator (CWE-338) lets an attacker recover its internal state from observed query IDs. A remote attacker who can observe the sequence of query IDs can predict upcoming IDs and inject forged DNS responses.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

Description from the CNA

Net::DNS uses a 16-bit query ID to match responses to the corresponding requests. In versions up to and including 1.57, the ID is obtained from Perl's built-in rand() function. An attacker that can observe the sequence of query IDs is able to expose the internal state of the PNRG and hence predict query IDs before they are transmitted. The victim Net::DNS instance is then exposed to forged responses injected by the attacker. Note that the deduplication cache in 1.57 has no impact on the feasibility of this attack.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00428 28th percentileScored 2026-11-30
Fix Partial Net::DNS (NLnet Labs): 1.58Red Hat: 2 advisoriesRed Hat: 3 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
NLnet LabsNet::DNS0.02 and later; 1.00 to before 1.581.58Patch availableCNA
  • Net::DNS VendorNLnet Labs Affected 0.02 and later; 1.00 to before 1.58 Fixed in 1.58 Patch available CNA

Remediation

Update Net::DNS to version 1.58. Red Hat fixes this in RHSA-2026:104757 for Red Hat Enterprise Linux AppStream 8 and in RHSA-2026:104758 for Red Hat Enterprise Linux AppStream 9 and CodeReady Linux Builder 9. Red Hat Enterprise Linux 6 has no fix planned and Red Hat Enterprise Linux 7 has no fix available.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

  • Fix · CNA Net::DNS (NLnet Labs) Fixed in 1.58

Red Hat 2 advisories

  • RHSA-2026:104758 Released 2026-12-01 · Red Hat rating Important
    perl-Net-DNS security update
    • Red Hat Enterprise Linux AppStream (v. 9) perl-Net-DNS-1.29-6.el9_9.2
    • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) perl-Net-DNS-Nameserver-1.29-6.el9_9.2
  • RHSA-2026:104757 Released 2026-11-30 · Red Hat rating Important
    perl-Net-DNS security update
    • Red Hat Enterprise Linux AppStream (v. 8) perl-Net-DNS-1.15-3.el8_10

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2026:104757
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2026:104758
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)Fixed RHSA-2026:104758

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-101340
  2. 2026-11-20 Alias added: GHSA-fc2c-c7cj-qwpr
  3. 2026-11-20 CISA SSVC decision points changed
  4. 2026-11-21 Affected versions changed · Red Hat
  5. 2026-11-21 CVSS score added · Red Hat
  6. 2026-11-25 EPSS moved to the below the 50th percentile
  7. 2026-12-01 Fix available: Red Hat Enterprise Linux AppStream (v. 8) · Red Hat
  8. 2026-12-01 Fix available: RHSA-2026:104757 · Red Hat
  9. 2026-12-01 Fix available: RHSA-2026:104758 · Red Hat
  10. 2026-12-01 Fix available: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) · Red Hat

References

  • TI-2026-25690 Possible arbitrary code execution during DNSSEC validation CVSS 4.0CRITICAL 9.1
  • TI-2026-56302 Heap buffer overflow and possible Remote Code Execution when digesting DNSKEY CVSS 4.0CRITICAL 9.1
  • TI-2026-31146 Crash during DNSSEC validation of malicious content CVSS 4.0HIGH 8.7
  • TI-2026-31135 Heap overflow with multiple NSID, COOKIE, PADDING EDNS options CVSS 4.0HIGH 8.7
  • TI-2024-01798 Denial of service when trimming EDE text on positive replies CVSS 3.1HIGH 7.5
  • TI-2026-36436 Routinator crashes on specifically crafted RRDP XML files CVSS 4.0HIGH 8.7
See all 99 →

Sources