Skip to main content
EPSS 0.2%top 94%

Gptline: NLTK CrubadanCorpusReader path traversal allows arbitrary file disclosure (CVE-2026-71514)

0
Low
Published: 09/03/2026 (09/03/2026, 09:08:38 UTC)
Source: GCVE Database
Product: gptline

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

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected software

nltk
pkg:pypi/nltk
Affected versions
<3.9.4 >=3.9.4 <3.10.3
Homebrewmore threats →ghsa
gptline
pkg:brew/gptline
Affected versions
>=1.0.8_16 <1.0.8_23

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 02:17:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses