nltk.picklesec.allowlisted_pickle_load 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 allowed_modules=("numpy", "scipy", "sklearn") allowance that TransitionParser.parse(depgraphs, modelFile) granted for model files, a crafted protocol 4 pickle could name numpy.lib._npyio_impl.recfromtxt (arbitrary file read, result returned to the caller of allowlisted_pickle_load) or numpy.lib.format.open_memmap (attacker-chosen file create), and the REDUCE opcode invoked them during the load.
nltk >= 3.10.0 and <= 3.10.3 (the allowlisting unpickler and the TransitionParser model path); numpy must be installed.
A pickle whose REDUCE names numpy.lib._npyio_impl.recfromtxt with a target path, loaded through allowlisted_pickle_load(data, allowed_modules=("numpy",)), reads that file on v3.10.3; one naming numpy.lib.format.open_memmap 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.
File read and file create on the host that loads an untrusted model through NLTK's allowlisting unpickler. No code execution: this sits below the TransitionParser code-execution sibling GHSA-m396-3h67-vpfv, which is why the severity was reassessed to Medium (see the reply below).
Editorial note (2026-10-10): the report body of this advisory had been overwritten with the text of GHSA-rv69-j573-cm47 (the nested gzip decompression bomb). The summary above was reconstructed by the maintainers from the title, the maintainer reply, the CVSS justification and PR #3757; the original reporter text is not recoverable from the record.
Status: MERGED on develop (unreleased; v3.10.3 of 2026-08-12 predates the fix)....
3.10.4Exploitability
AV:LAC:LPR:NUI:RScope
S:UImpact
C:HI:LA:N6.1/CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:NSerialization