Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle model naming numpy.lib sink
-
DeliveryDistribute untrusted model to victim with numpy installed
-
ExploitVictim loads model via TransitionParser.parse or allowlisted_pickle_load
-
ExecutionREDUCE opcode invokes recfromtxt or open_memmap
-
ImpactRead 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
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).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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- 6 pypi packages depend on nltk (6 direct, 0 indirect)
Ecosystem-wide dependent count for version 3.10.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-130437
GHSA-c59x-vh6j-3w8v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB