CVE-2026-126302

Description

A flaw was found in the Natural Language Toolkit (NLTK). An improper symbolic link (symlink) handling vulnerability allows a local attacker with write access to a trusted data directory to bypass directory sandbox restrictions. By planting a malicious symbolic link, an attacker can cause the application to access and read SQLite database files outside the intended boundary, leading to unauthorized information disclosure.

Statement

Red Hat has evaluated this vulnerability as having a Low impact because exploitation requires local access with pre-existing write privileges within the application's data directory. Furthermore, the risk is confined to unauthorized read access of local SQLite databases, precluding data modification or remote code execution. In typical Red Hat deployments, secure default filesystem permissions isolate these directories from untrusted local users, limiting practical exploitability.

Mitigation

Restrict write permissions on the NLTK data root directory so that untrusted local users cannot create files or symbolic links within it. Ensure that directories configured for NLTK data storage are owned by a dedicated account and writable only by authorized users:

chmod 750 /path/to/nltk_data

Additionally, ensure kernel symlink protection is enabled to restrict following symbolic links in world-writable sticky directories:

sysctl -w fs.protected_symlinks=1

Caveats: Restricting directory permissions will prevent unprivileged users or automated routines from downloading or modifying corpora and models in shared directories. No service restarts are required for these filesystem permission changes.

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/A3.3
Attack VectorLocalN/ALocal
Attack ComplexityLowN/ALow
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityLowN/ALow
Integrity ImpactNoneN/ANone
Availability ImpactNoneN/ANone

Vector

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

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/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.