CVE-2026-79676
Received Received - Intake

Path Traversal in NLTK Corpus Readers

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

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

NLTK versions before 3.10.3 contain a path traversal vulnerability in corpus readers that reopen root-derived paths using built-in open() instead of nltk.pathsec.open(), allowing symlinks to escape trusted roots. Attackers who stage symlinked corpus files under a trusted data root can disclose outside-root content through normal corpus reader methods like channels(), domains(), and synonyms().

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

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

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
nltk nltk to 3.9.4 (exc)
nltk nltk to 3.10.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects NLTK versions before 3.10.3. It involves a path traversal issue in corpus readers where symlinks can escape trusted roots. Attackers can stage symlinked corpus files under a trusted data root and disclose outside-root content through methods like channels(), domains(), and synonyms(). The issue occurs because corpus readers use built-in open() instead of nltk.pathsec.open(), bypassing security boundaries.

Detection Guidance

Check NLTK version with pip show nltk. If version is below 3.10.3, the system is vulnerable. Inspect corpus readers for direct open() calls instead of nltk.pathsec.open().

Look for symlinked files under trusted corpus roots. Review IPIPANCorpusReader, CrubadanCorpusReader, and LinThesaurusCorpusReader implementations.

Impact Analysis

An attacker could exploit this to read sensitive files outside the intended data root by creating symlinks. This could lead to unauthorized disclosure of confidential data if corpus files are accessed through vulnerable readers.

Compliance Impact

This vulnerability could lead to unauthorized data exposure, violating confidentiality requirements in GDPR and HIPAA. Organizations using affected NLTK versions may face compliance risks due to potential data breaches.

Mitigation Strategies

Upgrade NLTK to version 3.10.3 or later. Replace direct open() calls in affected corpus readers with nltk.pathsec.open().

Remove or quarantine any suspicious symlinked files under corpus roots. Review and harden global-sandbox fallback cases.

Chat Assistant

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

EPSS Chart