Skip to main content

NLTK CVE-2026-128136

| EUVDEUVD-2026-130437 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-11-19 security-advisories@github.com GHSA-c59x-vh6j-3w8v
6.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious pickle model naming numpy.lib sink
  2. Delivery
    Distribute untrusted model to victim with numpy installed
  3. Exploit
    Victim loads model via TransitionParser.parse or allowlisted_pickle_load
  4. Execution
    REDUCE opcode invokes recfromtxt or open_memmap
  5. Impact
    Read local file or create/truncate attacker-chosen file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) numpy to be installed in the victim environment (the sinks live in numpy.lib); (2) the victim to load an attacker-controlled model/pickle through NLTK's allowlisting unpickler - either allowlisted_pickle_load with a broad allowed_modules=('numpy','scipy','sklearn') allowance, or the TransitionParser.parse(depgraphs, modelFile) model path that granted it; and (3) a crafted protocol-4 pickle whose REDUCE names a submodule-local sink such as numpy.lib._npyio_impl.recfromtxt (file read) or numpy.lib.format.open_memmap in w+ mode (file create/truncate of a .npy header). LIMITING FACTORS: this is a local, operator-initiated action (AV:L) requiring user interaction to load the model (UI:R); no code execution is achieved (integrity is limited, I:L, availability N); and the unpickler is itself a defensive layer. On the TransitionParser.parse product path specifically, the file-read result is consumed internally and not returned to the attacker, and open_memmap only creates/truncates (no arbitrary content control).

Impact

Signals point to a genuine but moderate-priority issue rather than an emergency. The CVSS 3.1 base is 6.1 (Medium) with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N, and the vuln.today Decision label is 'this_month' (not act_now/emergency), which is consistent with a flaw that needs a victim to load attacker-controlled bytes. There is no CISA KEV entry and no EPSS score in the input, so there is no evidence of active or widespread exploitation; the strongest 'exploitability' signal is that the GHSA advisory and maintainer transcript document a working reproduction of the primitives (recfromtxt file read, open_memmap file create). Note a key nuance the maintainer states explicitly: C:H is a worst-case rating because a DIRECT caller of allowlisted_pickle_load receives the read object, whereas through the actual TransitionParser.parse product path the read content is consumed internally and NOT returned to the attacker - so real-world confidentiality impact on the product path is lower than C:H implies. A data-quality caveat: the published GHSA-c59x-vh6j-3w8v body was corrupted (overwritten with an unrelated gzip-bomb advisory) and its 'Fix status' block discusses PR #3778 (decompression bomb, CWE-409), which is a DIFFERENT vulnerability; the fix for THIS CVE is PR #3757 / commit a44a7af. Overall: a real local deserialization hardening gap worth patching on a normal cycle, not a drop-everything network RCE.

Exploit ScenarioDerived

An attacker publishes a malicious NLTK TransitionParser model (a crafted protocol-4 pickle) and convinces a victim - who has numpy installed - to load it, e.g. via TransitionParser.parse(depgraphs, modelFile) or a direct allowlisted_pickle_load call. Because the denylist keyed dangerous numpy globals by export name, the pickle names submodule-local sinks such as numpy.lib._npyio_impl.recfromtxt or numpy.lib.format.open_memmap, whose REDUCE opcode fires during the load to read a local file or create/truncate an attacker-chosen path. A documented proof-of-concept reproduction exists in the GHSA advisory and maintainer transcript, though no standalone exploit tool is provided in the input; this requires AV:L and user interaction (loading the model), not remote delivery.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

NLTK's allowlisting unpickler (nltk.picklesec.allowlisted_pickle_load) in versions 3.10.0 through 3.10.3 keyed its denylist of dangerous NumPy globals by export name, so file-I/O callables living in NumPy submodules (numpy.lib._npyio_impl.recfromtxt, numpy.lib.format.open_memmap) escaped the filter under the broad numpy/scipy/sklearn module allowance used by TransitionParser.parse. A crafted protocol-4 pickle loaded as an untrusted model can therefore read a local file or create/truncate an attacker-selected file on the host, provided NumPy is installed. No code execution is achieved, exploitation is a local operator-initiated action requiring the victim to load the malicious model, and no public exploit code or active exploitation is confirmed; the fix narrows the model allowlist to exact globals and blocks numpy.lib prefixes, released in NLTK 3.10.4.

RemediationAI

Vendor-released patch: upgrade to NLTK 3.10.4, which denies the numpy.lib, numpy.rec, numpy.core.records, numpy._core.records, numpy.ma.mrecords and numpy.compat module prefixes in the shared denylist, replaces TransitionParser's broad allowed_modules=('numpy','scipy','sklearn') grant with allowed_modules=() plus an exact _MODEL_ALLOWED_GLOBALS list, and routes model reads and writes through pathsec.open; see the advisory at https://github.com/nltk/nltk/security/advisories/GHSA-c59x-vh6j-3w8v, PR https://github.com/nltk/nltk/pull/3757 and the release at https://github.com/nltk/nltk/releases/tag/v3.10.4. Until upgrading, never load model or pickle files from untrusted or unverified sources through allowlisted_pickle_load or TransitionParser.parse, and avoid passing broad allowed_modules allowances such as ('numpy','scipy','sklearn') to allowlisted_pickle_load - restricting the allowance to the exact (module, qualname) globals a legitimate model needs removes reachability of the submodule-local sinks, at the cost that genuine models referencing other NumPy or SciPy primitives will fail to load with UnpicklingError. Loading only models produced in-house and stored in locations writable exclusively by trusted operators limits exposure, since the flaw requires the victim to actively load attacker-controlled bytes.

Affected VersionsENISA

nltk 3.10.0, < 3.10.4

Affected Packages

pypi nltk fix: 3.10.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-502 (deserialization of untrusted data) in NLTK's security-hardened unpickling layer. NLTK's AllowlistUnpickler restricts which globals a pickle may reconstruct via find_class, combining allowed_modules, allowed_globals and a shared denylist. The denylist was keyed by export name under __module__ == 'numpy', but NumPy's text/memmap I/O functions are defined in submodules (numpy.lib._npyio_impl, numpy.lib.npyio, numpy.lib.format) whose __module__ strings never matched, so the broad allowed_modules=('numpy','scipy','sklearn') grant issued by TransitionParser for model files made them reachable. Because pickle protocol 4 REDUCE invokes any resolved callable during load, naming recfromtxt with a path yields a file read whose result is returned to direct allowlisted_pickle_load callers, and naming open_memmap in w+ mode creates or truncates a file (writing only a .npy header, hence limited integrity impact). The commit a44a7af adds numpy.lib to the denied module prefixes (alongside numpy.rec, numpy.core.records, numpy._core.records, numpy.ma.mrecords, numpy.compat) so prefix matching defeats submodule and re-export forms, replaces the broad module allowance with allowed_modules=() plus an exact _MODEL_ALLOWED_GLOBALS set covering what a genuine fitted sklearn SVC pickle references, and routes TransitionParser model reads and writes through the pathsec sandbox. The advisory notes this sits below the separate TransitionParser code-execution sibling GHSA-m396-3h67-vpfv.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 6.1 MEDIUM

Victim must locally load an untrusted model (AV:L, UI:R); no auth to craft the payload (PR:N); worst-case file read to a direct caller is C:H, file create/truncate is I:L, no availability impact (A:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 19:34 EUVD
CVE Published
Nov 19, 2026 - 18:18 cve.org
MEDIUM 6.1

DescriptionCVE.org

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, allowlisted_pickle_load keys dangerous NumPy globals by export name, allowing submodule-local numpy.lib file input/output callables to evade the denylist under the broad module allowance used by TransitionParser. A crafted pickle can invoke recfromtxt to read a local file or open_memmap to create or truncate an attacker-selected file when a victim loads an untrusted model. This issue is fixed in version 3.10.4.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6 pypi packages depend on nltk (6 direct, 0 indirect)

Ecosystem-wide dependent count for version 3.10.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
High
NLTK is a very widely deployed Python NLP library in data/research stacks
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy