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 Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 3.3 | N/A | 3.3 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | Low |
| Integrity Impact | None | N/A | None |
| Availability Impact | None | N/A | None |
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
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.