8.7high
NLTK 3.10.0 through 3.10.2 Remote Code Execution via AllowlistUnpickler Dotted-Name Bypass
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.79% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-5gh2-94qg-qppqPYSEC-2026-3867
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nltk nltk | from 3.10.0 before 3.10.3, before 3.10.3 Not affected: 3.10.3 | CVE List, NVD |
| nltk (PyPI) | from 3.10.0 before 3.10.3 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| VulnCheck | 8.7high CVSS:4.0 | 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 |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | 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 |
| PyPA Advisory Database | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
NLTK anterior a la versión 3.10.3 contiene una vulnerabilidad de ejecución remota de código en AllowlistUnpickler que valida solo la cadena del módulo pickle y no el nombre global, permitiendo a los atacantes resolver nombres con puntos mediante la transversalidad de atributos a elementos invocables fuera del espacio de nombres en la lista blanca. Los atacantes pueden crear modelos de analizador de transición no confiables que ejecutan comandos arbitrarios cuando TransitionParser.parse carga el modelo a través de allowlisted_pickle_load.
References
| https://github.com/nltk/nltk/commit/c3e37113742a1ebeeb4f2ca58941f320f98805ea | patch, web | |
| https://github.com/nltk/nltk | package, product | |
| https://github.com/nltk/nltk/blob/v3.10.2/nltk/picklesec.py#L119-L124 | product, technical-description, web | |
| https://www.vulncheck.com/advisories/nltk-through-remote-code-execution-via-allowlistunpickler-dotted-name-bypass | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-71513 | advisory | |
| https://pypi.org/project/nltk | package | |
| https://github.com/advisories/GHSA-5gh2-94qg-qppq | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-71513 changed 2026-08-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5gh2-94qg-qppq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-71513 changed 2026-10-14 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3867 changed 2026-09-10 | CC-BY-4.0 |