HIGH 8.8 PyPI

NLTK AllowlistUnpickler dotted-name validation bypass allows remote code execution

PYSEC-2026-3867 · CVE-2026-71513 · GHSA-5gh2-94qg-qppq

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes