CVE-2026-126302
Awaiting Analysis Awaiting Analysis - Queue

NLTK Symlink Following Vulnerability in nltk.sem.chat80.sql_query

Vulnerability report for CVE-2026-126302, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-13

Last updated on: 2026-11-13

Assigner: VulnCheck

Description

NLTK from 3.9.4 before 3.10.4 contains a symlink following vulnerability in nltk.sem.chat80.sql_query() that bypasses the pathsec data-root sandbox containment check. Attackers who can write into a trusted NLTK data root can plant a symbolic link to read SQLite databases outside the sandbox.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-13
Last Modified
2026-11-13
Generated
2026-11-13
AI Q&A
2026-11-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
nltk nltk to 3.10.4 (exc)
nltk nltk From 3.9.4 (inc) to 3.10.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-126302 is a symlink following vulnerability in NLTK versions 3.9.4 to 3.10.3. It affects the nltk.sem.chat80.sql_query() function which bypasses the pathsec data-root sandbox containment check. Attackers with write access to a trusted NLTK data root can create a symbolic link to read SQLite databases outside the sandbox.

Detection Guidance

Check NLTK version with pip show nltk. If version is between 3.9.4 and 3.10.3, the system is vulnerable. Inspect directories listed in nltk.data.path for suspicious symlinks pointing outside the data root. Use find /path/to/nltk/data -type l -ls to detect symlinks.

Impact Analysis

This vulnerability allows attackers to read sensitive SQLite databases outside the intended sandboxed directory by exploiting symlinks. If you use NLTK versions 3.9.4 to 3.10.3 and an attacker can write to your NLTK data root, they may access confidential data stored in external databases.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, potentially violating GDPR's data protection principles or HIPAA's confidentiality requirements. Organizations using affected NLTK versions may face compliance risks if attackers exploit this to access protected health or personal data.

Mitigation Strategies

Upgrade NLTK to version 3.10.4 or later immediately. Remove write access to NLTK data root directories for untrusted users. Monitor for unusual database access patterns in application logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126302. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...