CVE-2026-12072: Gptline · Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nltk.pathsec sandbox (ENFORCE=True)
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.0.8_22 soon.
Data as of 18 Sep 2026, 02:18 UTC
- Patch
- Available – fixed in 3.10.0, 1.0.8_22
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade gptline to 1.0.8_22; nltk to 3.10.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | Affected
| Fixed in
|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should upgrade to a fixed version of NLTK where NKJPCorpusReader properly validates and normalizes file paths and uses the protected pathsec APIs to enforce sandboxing. Until patched, do not use NKJPCorpusReader with untrusted input for the fileids argument, and avoid enabling ENFORCE=True as it does not mitigate this issue. Check the official NLTK advisories or repository for the specific patched versions and upgrade accordingly.
Description
A path traversal vulnerability in the Natural Language Toolkit (NLTK) component NKJPCorpusReader allows an attacker to read arbitrary files outside the intended corpus root directory. This occurs because NKJPCorpusReader constructs file paths via unsafe string concatenation and uses the builtin open() function directly, bypassing NLTK's pathsec sandbox protections even when strict enforcement mode (ENFORCE=True) is enabled. The vulnerability was confirmed in NLTK version 3.9.4 and the current development branch. An attacker controlling the fileids argument can exploit this to read sensitive files outside the corpus root.