External risk intelligence

Net::DNS Predictable Query ID Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-101340

Net::DNS is a library used by various applications to perform DNS queries. While it is not a standalone edge service or public-facing portal, it is commonly utilized in network-connected software that may communicate with external resolvers. Because its usage is embedded within diverse applications, the likelihood of exposure depends heavily on the specific implementation, making reachability possible but not inherent.

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a vulnerability in Net::DNS, a library used for DNS queries. The issue allows an attacker to predict query IDs, enabling them to inject forged responses into network communications. This could potentially disrupt or misdirect DNS resolutions, impacting systems that rely on this library for name resolution services. The main concern is confirming relevance and exposure.

  • Predictable IDs can allow forged DNS responses.
  • Widely used library; impact depends on implementation.
  • Assess exposure of systems using this DNS library.

Attack Path

How an attacker could exploit the issue

An attacker who can monitor network traffic can predict the internal query IDs used by the Net::DNS library. By knowing these IDs, the attacker can then send forged DNS responses to a victim system that are accepted as legitimate, potentially leading to redirection or interception of network communications.

  • Attacker observes query IDs.
  • Attacker predicts and forges responses.
  • Risk: Intercepted or redirected traffic.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker to forge DNS responses when supported by the advisory's conditions. This occurs because the predictable sequence of query IDs used by Net::DNS can be observed and then exploited to impersonate legitimate DNS servers.

  • DNS query IDs are at risk.
  • Predictable IDs enable forged responses.
  • Service integrity and data could be compromised.

Operational Fix

Recommended remediation, mitigation, and detection steps

The Net::DNS library's predictable query IDs can be exploited by attackers to forge DNS responses, impacting any application that relies on this library for DNS resolution. Determining ownership begins with identifying all systems utilizing Net::DNS, assessing their external reachability and business criticality, and then engaging the appropriate application or platform owners to plan remediation.

  • Confirm application owners and asset inventory.
  • Verify external reachability and business criticality.
  • Plan coordinated maintenance for remediation.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Net::DNS?

Net::DNS is a software library for the Perl programming language used to perform DNS queries. Developers integrate it into various network-connected applications to allow those programs to resolve domain names into IP addresses and interact with DNS servers directly.

What does CVE-2026-101340 mean for security?

This vulnerability is classified as CWE-338, which involves the use of a cryptographically weak pseudo-random number generator. Because Net::DNS relies on a standard, predictable random function to assign 16-bit query IDs, an attacker can anticipate the ID numbers the library will choose next and inject fraudulent DNS responses that the victim system mistakenly accepts as legitimate.

How does an attacker trigger this vulnerability?

An attacker must be able to observe the sequence of DNS query IDs transmitted by the affected system to learn the internal state of the generator. Importantly, simply having a deduplication cache enabled, as seen in version 1.57, does not prevent or mitigate this issue; the predictability remains as long as the underlying random function is used.

Is my system at risk?

Halo Surface Signal indicates that while Net::DNS is not a standalone edge service, it is often embedded in software that communicates with external resolvers. Your risk depends on whether your internal applications utilize this library for network operations. If those applications process untrusted or external traffic, they may be susceptible to DNS response forgery.

What should I do if I use Net::DNS?

Begin by auditing your software inventory to identify which applications rely on the Net::DNS library. Once identified, evaluate the network exposure and business criticality of those specific services. Work with your application owners to plan maintenance and updates, prioritizing systems that handle sensitive DNS-dependent communications.