GitHub Advisoryadvisory · PyPI

GHSA-5gh2-94qg-qppq NLTK AllowlistUnpickler dotted-name validation bypass allows remote code execution

HIGH Published 2026-08-22 Modified 2026-09-02 Official page ↗
Aliases
CVE-2026-71513
Ecosystem
PyPI
Packages
nltk
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-502
Reviewed
2026-09-02

Affected packages

• PyPI nltk: >= 3.10.0, < 3.10.3 → fixed in 3.10.3

Description

NLTK before 3.10.3 contains a remote code execution vulnerability in AllowlistUnpickler that validates only the pickle module string and not the global name, allowing attackers to resolve dotted names by attribute traversal to callables outside the allowlisted namespace. Attackers can craft untrusted transition-parser models that execute arbitrary commands when TransitionParser.parse loads the model through allowlisted_pickle_load.

Related

Alias · CVE (1)

  • CVE-2026-71513 NLTK before 3.10.3 contains a remote code execution vulnerability in AllowlistUnpickler that validates only the pickle module string and… vulnerability

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References