CVE-2026-126304

Description

A flaw was found in NLTK. This vulnerability can result in unauthorized information disclosure when processing untrusted corpus data. By supplying a crafted corpus containing directory symbolic links (symlinks), an attacker can bypass directory confinement controls in the YCOE corpus reader. This allows the attacker to read files and temporary data residing outside the intended corpus directory within the allowed data sandbox.

Statement

This vulnerability is rated with a Low severity because exploitation requires local user interaction to load untrusted corpora through a specialized corpus reader, limiting exposure in standard environments. In typical Red Hat deployments, NLTK is utilized within custom natural language processing workflows rather than as an exposed network service, requiring an attacker to convince an application or user to parse a maliciously prepared directory. Additionally, the scope of file disclosure is bounded within the preconfigured NLTK data sandbox rather than permitting arbitrary filesystem traversal.

Mitigation

Avoid loading or processing YCOE corpora from untrusted, public, or shared directories. Restrict filesystem write access to directories configured in `nltk.data.path` to prevent unauthorized placement of directory symbolic links. If processing untrusted external corpora is necessary, isolate execution within a dedicated container or restricted sandbox to contain exposure of sensitive files.

Caveat: Restricting input corpus locations or permissions may require adjustments to automated ingestion pipelines or limit ingestion of third-party linguistic data.

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 Score3.3N/A7.5
Attack VectorLocalN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionRequiredN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityLowN/AHigh
Integrity ImpactNoneN/ANone
Availability ImpactNoneN/ANone

Vector

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

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

Understanding the Weakness (CWE)

Confidentiality,Integrity,Access Control

Technical Impact: Read Files or Directories; Modify Files or Directories; Bypass Protection Mechanism

An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism then an attacker may be able to bypass the mechanism.

Other

Technical Impact: Execute Unauthorized Code or Commands

Windows simple shortcuts, sometimes referred to as soft links, can be exploited remotely since a ".LNK" file can be uploaded like a normal file. This can enable remote execution.

Frequently Asked Questions

Want to get errata notifications? Sign up here.