CVE-2026-79674

NLTK 3.10.2 Path Traversal via corpus-reader constructors

Published Aug 25, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
Description
NLTK versions before 3.10.3 contain a path sandbox bypass vulnerability in corpus-reader constructors that allows attackers to read files outside the intended data root. Attackers can supply arbitrary corpus root paths to LinThesaurusCorpusReader and PanLexLiteCorpusReader constructors to access filesystem content and SQLite databases outside the pathsec sandbox boundary.

Analysis

AI-generated

Technical impact

NLTK versions prior to 3.10.3 allow a path sandbox bypass in corpus‑reader constructors, which can result in reading files outside the intended data root.

Affected Systems

Any deployment using NLTK before 3.10.3 is affected, with specific impact on the LinThesaurusCorpusReader and PanLexLiteCorpusReader components. Versions 3.10.3 and later include the fix.

Risk and Exploitability

The CVSS score of 8.8 categorizes this as high severity. The EPSS score of < 1% indicates that exploitation probability is very low, and the issue is not listed in the CISA KEV catalog. Attackers can exploit the flaw by supplying a crafted corpus root path; the requirement for an attacker to run Python code or influence the corpus path suggests the threat is most relevant to local or untrusted environments where unvalidated input reaches the reader constructors.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to NLTK 3.10.3 or newer to remove the vulnerability
  • Validate and sanitize any user‑supplied corpus paths before passing them to the reader constructors
  • In environments where inputs cannot be wholly trusted, restrict file system permissions or run the application within a read‑only sandbox to limit file access

Generated by OpenCVE AI on August 28, 2026 at 19:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3gq4-3j92-5w49 NLTK: Corpus Reader Sandbox Bypass
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description NLTK versions before 3.10.3 contain a path sandbox bypass vulnerability in corpus-reader constructors that allows attackers to read files outside the intended data root. Attackers can supply arbitrary corpus root paths to LinThesaurusCorpusReader and PanLexLiteCorpusReader constructors to access filesystem content and SQLite databases outside the pathsec sandbox boundary.
Title NLTK 3.10.2 Path Traversal via corpus-reader constructors
First Time appeared Nltk
Nltk nltk
Weaknesses CWE-73
CPEs cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
Vendors & Products Nltk
Nltk nltk
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 25, 2026, 5:42 PM
Reserved
Aug 25, 2026, 11:10 AM
Status
Analyzed
Published
Aug 25, 2026, 4:17 PM
Modified
Aug 31, 2026, 7:06 PM
Severity
Important
Public date
Aug 25, 2026, 3:16 PM