cve.bz

CVE-2026-101340 Query ID predictable from a short sequence of observations

9.1 criticalEPSS 0.4%

Critical (9.1) in nlnet labs net dns. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.1 critical
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS
0.4% estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-11-26. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-11-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
Assigned by
NLnet Labs (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-101340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-101340?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-101340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-101340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NLnet Labs Net::DNSfrom 0.02 before 0.*
NLnet Labs Net::DNSfrom 1.00 before 1.58

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libnet-dns-perlno fix listedDEBIAN-CVE-2026-101340
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 5 morelibnet-dns-perlno fix listedUBUNTU-CVE-2026-101340

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because remote, unauthenticated attackers who observe DNS queries can reliably predict future transaction identifiers and inject spoofed DNS records into dependent applications, resulting in severe integrity and confidentiality compromise without user intervention. In Red Hat Enterprise Linux, Net::DNS is packaged as a shared Perl module (perl-Net-DNS) primarily utilized by specialized automation scripts and custom networking tools rather than functioning as the system-wide name resolver. The operational risk is highest in server environments where persistent Perl services resolve untrusted or external hostnames, leaving them susceptible to cache poisoning or traffic redirection.

Red Hat's mitigation

Configure applications using Net::DNS to direct queries exclusively to a trusted local validating recursive resolver listening on localhost (127.0.0.1 or ::1) with DNSSEC validation enabled, preventing network adversaries from monitoring transaction ID sequences or injecting forged responses.

Alternatively, if the module is not required by custom scripts or applications, remove the optional package:

# dnf remove perl-Net-DNS

Caveats: Removing perl-Net-DNS will break any applications or automation scripts dependent on this module. If configuring or restarting a local DNS resolver service, a service reload or restart will be required and may cause temporary DNS resolution interruptions.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6perl-Net-DNSOut of support scope
Red Hat Enterprise Linux 7perl-Net-DNSAffected
Red Hat Enterprise Linux 8perl-Net-DNSAffected
Red Hat Enterprise Linux 9perl-Net-DNSAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-101340.

References

Check your stackJSON