CVE-2026-128140

Description

A flaw was found in NLTK. When resolving package collections, the downloader fails to track previously visited items. A remote attacker could provide a malicious collection index containing circular references that, when processed, causes an infinite loop and excessive memory consumption. This issue can lead to application unresponsiveness and a Denial of Service (DoS).

Statement

This vulnerability is rated as having Moderate impact because exploitation is limited to a denial of service (CPU exhaustion and memory consumption) and requires user interaction to fetch or process an external, malicious repository index. In typical Red Hat environments, the NLTK downloader connects to default trusted sources, meaning successful triggering requires applications or users to be directed toward untrusted, specially crafted index files containing cyclical collection dependencies. The flaw does not compromise data confidentiality or integrity on the host system.

Mitigation

Avoid directing the NLTK downloader to untrusted or third-party package index locations, and restrict downloads to verified repositories. For automated workflows that process external sources, run downloading operations within isolated, sandboxed environments such as unprivileged containers with configured CPU and memory limits (for example, via systemd slices or container resource quotas) to prevent resource exhaustion from affecting the host system.

Caveat: Restricting custom index URLs prevents retrieving packages or collections from private or alternate repository servers.

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 Score6.5N/A6.5
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionRequiredN/ARequired
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactNoneN/ANone
Availability ImpactHighN/AHigh

Vector

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

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Amplification

An infinite loop will cause unexpected consumption of resources, such as CPU cycles or memory. The software's operation may slow down, or cause a long time to respond.

Frequently Asked Questions

Want to get errata notifications? Sign up here.