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.
Published: 2026-08-25
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure via Arbitrary File Read
Action: Apply Update
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Important


Tue, 25 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 25 Aug 2026 15:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T17:42:56.934Z

Reserved: 2026-08-25T11:10:13.698Z

Link: CVE-2026-79674

cve-icon Vulnrichment

Updated: 2026-08-25T17:42:34.064Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-25T16:17:27.873

Modified: 2026-08-31T19:06:01.313

Link: CVE-2026-79674

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-25T15:16:00Z

Links: CVE-2026-79674 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T19:45:03Z

Weaknesses
  • CWE-22

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

  • CWE-73

    External Control of File Name or Path