Skip to main content
← All vulnerabilities
CVE-2026-78683PYSEC-2026-3734GHSA-RHP5-R9X4-F5G2

NLTK before 3.10.0 Remote Code Execution via Unsafe Pickle Deserialization

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.10.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

NLTK before 3.10.0 (affected versions <=3.9.4) contains an unsafe pickle deserialization vulnerability in the TransitionParser.parse() method (nltk/parse/transitionparser.py). The method calls pickle_load() with the default restricted=False, routing deserialization through WarningUnpickler, which does not override find_class() and therefore permits arbitrary class resolution. When an application loads an attacker-crafted model file, embedded pickle gadget chains execute arbitrary Python code with the privileges of the user running the application. NLTK provides a RestrictedUnpickler for safe deserialization, but it is not used by production code paths. Fixed in 3.10.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • nltk nltk

    fixed in 3.10.0

  • nltkPyPI

    fixed in 3.10.0

References 2

GitHub · nltk/nltk

vulncheck.com