CVE Feed
6.1 Medium

NLTK: AllowlistUnpickler does not deny numpy submodule-local file-I/O sinks

CVE-2026-128136

Summary nltk.picklesec.allowlistedpickleload keyed its denylist of dangerous globals by export name, so numpy's file-I/O callables that live in submodules and are not re-exported under module == "numpy" were never matched. Under the broad allowedmodules=("numpy", "scipy", "sklearn") allowance that TransitionParser.parse(depgraphs, modelFile) granted for model files, a crafted protocol 4 pickle could name numpy.lib.npyioimpl.recfromtxt (arbitrary file read, result returned to the caller of allowlistedpickleload) or numpy.lib.format.openmemmap (attacker-chosen file create), and the REDUCE opcode invoked them during the load. Affected nltk >= 3.10.0 and <= 3.10.3 (the allowlisting unpickler and the TransitionParser model path); numpy must be installed. Reproduction A pickle whose REDUCE names numpy.lib.npyioimpl.recfromtxt with a target path, loaded through allowlistedpickleload(data, allowedmodules=("numpy",)), reads that file on v3.10.3; one naming numpy.lib.format.openmemmap with mode w+ creates a file. Both are refused on develop with UnpicklingError: global '...' is from a denied module. The maintainer transcript below shows the before and after runs. Impact File read and file…

Assessment

CVSS
6.1 (v3.1)
Severity
Medium
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
19 November 2026
Last updated
19 November 2026
Affected
nltk
Weakness
CWE-502

CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-128136