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
- https://github.com/nltk/nltk/security/advisories/GHSA-c59x-vh6j-3w8v
- https://nvd.nist.gov/vuln/detail/CVE-2026-128136
- https://github.com/nltk/nltk/pull/3757
- https://github.com/nltk/nltk/commit/a44a7af69bca87e92d9c4a701fcbbe4512e8d450
- https://github.com/nltk/nltk/releases/tag/v3.10.4
- https://github.com/advisories/GHSA-c59x-vh6j-3w8v
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
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-128136