Gptline: NLTK CrubadanCorpusReader path traversal allows arbitrary file disclosure (CVE-2026-71514)
Description
NLTK versions 3.9.4 through 3.10.2 contain a path traversal vulnerability in the CrubadanCorpusReader component. This flaw allows an attacker controlling a corpus package to disclose arbitrary files outside the intended corpus directory by exploiting improper path handling in the _load_lang_ngrams function. The vulnerability is limited to files ending with '-3grams.txt' that parse as token count lines. The CVSS score is low, reflecting limited impact and difficult exploitation conditions.
CVSS v3.1
Score 2.5low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NLTK versions 3.9.4 through 3.10.2 have a path traversal vulnerability (CVE-2026-71514) in CrubadanCorpusReader. The function _load_lang_ngrams constructs file paths by joining the corpus root with a language code read from a mapping file, but it uses the builtin open() without pathsec validation. This allows an absolute path in the language code to bypass the corpus root containment check, enabling disclosure of files outside the corpus directory. The vulnerability is constrained to files ending with '-3grams.txt' whose contents parse as token count lines. An attacker controlling a corpus package can exploit this to read arbitrary files.
Potential Impact
An attacker who can supply or control a corpus package can read arbitrary files outside the corpus root directory, limited to those matching the '-3grams.txt' suffix and token count format. The impact is confidentiality loss of file contents. There is no indication of integrity or availability impact. The CVSS score of 2.5 (low) reflects the limited scope and required attacker capabilities.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade NLTK to a fixed version beyond 3.10.2. No additional mitigation steps are indicated in the advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cv22-g7mw-8v73
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-71514"]
- Database Specific Severity
- LOW
- Cvss Version
- 3.1
Threat ID: 6a8a27f7acd9273b499bc99a
Added to database: 08/22/2026, 22:51:35 UTC
Last enriched: 09/18/2026, 02:17:14 UTC
Last updated: 10/07/2026, 06:48:18 UTC
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.