NLTK AllowlistUnpickler dotted-name validation bypass allows remote code execution

GHSA-5gh2-94qg-qppq
HIGH 8.7OSV

En bref

Source
OSV
Publiée
Mise à jour
CVE
CVE-2026-71513
Alias
PYSEC-2026-3867
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Criticité de la CVE
HIGH 8.7 · CVE-2026-71513

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.

Références

Paquets affectés

PaquetVersions
PyPI · nltkintroduced 3.10.0, fixed 3.10.3

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database