CVE-2026-101340

Description

A flaw was found in perl-net-dns. The package relies on a weak pseudo-random number generator (PRNG) to generate Domain Name System (DNS) query identifiers. A remote attacker who can observe DNS traffic can determine the generator's internal state and predict future query IDs. This predictability allows the attacker to inject forged DNS responses, leading to DNS spoofing and potential redirection of network traffic.

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.

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.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.4N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityHighN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityHighN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Understanding the Weakness (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism

If a PRNG is used for authentication and authorization, such as a session ID or a seed for generating a cryptographic key, then an attacker may be able to easily guess the ID or cryptographic key and gain access to restricted functionality.

Frequently Asked Questions

Want to get errata notifications? Sign up here.