Summary
NLnet Labs' Net::DNS generates its 16-bit query ID with Perl's rand() function, which lets an attacker who observes the ID sequence predict subsequent IDs. The source rates it critical, with a CVSS 4.0 score of 9.1.
What happened
Net::DNS uses a 16-bit query ID to match responses to their requests. In versions up to and including 1.57, that ID is obtained from Perl's built-in rand() function. According to the vendor's description, an attacker who can observe the sequence of query IDs can expose the internal state of the pseudo-random number generator and thereby predict query IDs before they are transmitted. The victim Net::DNS instance is then exposed to forged responses injected by the attacker. The vendor notes that the deduplication cache in version 1.57 has no impact on the feasibility of this attack. The weakness is classified as CWE-338.
Why it matters
A predictable query ID allows an attacker to inject forged responses that the affected instance might accept as legitimate. The score is CVSS 4.0 9.1 (critical severity), assigned by NLnet Labs as CNA, with vector 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. According to CISA's KEV catalog, no active exploitation of this vulnerability is recorded.
Affected products and versions
Net::DNS by NLnet Labs: version 0.02 and versions >= 1.00, < 1.58 (the vendor's description states the issue affects versions up to and including 1.57). The source does not state a fixed version.
| Product | Versions | Fixed in |
|---|---|---|
| NLnet Labs Net::DNS | 0.02 | — |
| NLnet Labs Net::DNS | >= 1.00, < 1.58 | — |
Action recommended by the source
The source does not include a fixed version or a specific mitigation. The vendor publishes an advisory at https://www.net-dns.org/downloads/CVE-2026-101340.txt, which should be consulted for guidance.
Sources and references
- https://www.net-dns.org/downloads/CVE-2026-101340.txt — CVE Program
Weaknesses (CWE): CWE-338
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.