CVE-2026-79657: NLTK · Allowlisted pickle loaders still permit code execution in current source
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 1.0.8_23 as a priority.
Data as of 25 Nov 2026, 14:04 UTC
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 69% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.8_23, 3.10.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
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), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Upgrade gptline to 1.0.8_23; nltk to 3.10.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
PyPInltkpkg:pypi/nltkOther 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 that tightens the allowlist to exact (module, qualname) pairs instead of broad module namespaces. The patch also denies dangerous modules such as os, subprocess, builtins, and numpy.f2py even if they appear in allowed modules, providing a defense-in-depth backstop. Users should upgrade to version 3.10.3 or later where these fixes are implemented. Until patched, avoid loading untrusted pickle data with the affected NLTK loaders. The vendor advisory confirms the patch and recommends replacing broad allowlists with precise safe globals and modules.
Description
CVE-2026-79657 is a critical remote code execution vulnerability in the Natural Language Toolkit (NLTK) library's allowlisted pickle loaders. The vulnerability arises because the allowlist trusts entire module namespaces rather than specific safe globals, allowing crafted pickle payloads to invoke dangerous callables during deserialization. This affects functions such as nltk.picklesec.allowlisted_pickle_load, nltk.tokenize.punkt.punkt_pickle_load, and nltk.parse.transitionparser.TransitionParser.parse in versions before 3.10.3. The flaw permits attackers to execute arbitrary commands when loading attacker-controlled tokenizer or model artifacts, defeating the intended safety mechanism. A patch is available that tightens the allowlist to exact (module, qualname) pairs and denies dangerous modules, effectively blocking these exploits.
References
- github.com/nltk/nltk/security/advisories/GHSA-x99w-6fgc-pmfw (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-79657 (opens in a new tab)
- vulncheck.com/advisories/nltk-before-3.10.3-remote-code-execution-via-unsafe-pickle-deserialization (opens in a new tab)
- github.com/nltk/nltk/commit/c3e37113742a1ebeeb4f2ca58941f320f98805ea (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.3 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3735.yaml (opens in a new tab)