NLTK before 3.10.3 contains a remote code execution vulnerability in AllowlistUnpickler that validates only the pickle
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 8.8 High : patch nltk soon.
Data as of 24 Nov 2026, 21:07 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 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 23 Nov 2026.
What to do
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10nltkpkg:deb/ubuntu/nltk?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/bionicOther 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
Upgrade NLTK to version 3.10.3 or later, where this vulnerability is fixed. The patch corrects the validation logic in AllowlistUnpickler to properly restrict unpickling to safe callables. No other mitigations are specified or recommended.
Description
NLTK versions before 3.10.3 contain a remote code execution vulnerability in the AllowlistUnpickler component. The vulnerability arises because AllowlistUnpickler only validates the pickle module string but not the global name, enabling attackers to exploit attribute traversal to callables outside the allowlisted namespace. This allows crafted untrusted transition-parser models to execute arbitrary commands when loaded via TransitionParser.parse.
References
- ubuntu.com/security/CVE-2026-71513 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-71513 (opens in a new tab)
- github.com/nltk/nltk/commit/c3e37113742a1ebeeb4f2ca58941f320f98805ea (opens in a new tab)
- security-tracker.debian.org/tracker/cve-2026-71513 (opens in a new tab)
- github.com/cveproject/cvelistv5/tree/main/cves/2026/71xxx/cve-2026-71513.json (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/blob/v3.10.2/nltk/picklesec.py (opens in a new tab)
- nvd.nist.gov/vuln/detail/cve-2026-71513 (opens in a new tab)
- vulncheck.com/advisories/nltk-through-remote-code-execution-via-allowlistunpickler-dotted-name-bypass (opens in a new tab)