Deserialization of Untrusted Data in Natural Language Toolkit - CVE-2026-128136

 

Deserialization of Untrusted Data in Natural Language Toolkit - CVE-2026-128136

Published: November 16, 2026


Vulnerability identifier: #VU166236
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-128136
CWE-ID: CWE-502
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to read files and create or truncate files on the victim's system.

The vulnerability exists due to unsafe deserialization and an export-name-based denylist in NLTK's allowlisting unpickler when loading pickle data with NumPy allowed. A remote attacker can trick a victim into loading a crafted protocol 4 pickle that invokes numpy.lib._npyio_impl.recfromtxt or numpy.lib.format.open_memmap through REDUCE to read files or create or truncate files with a NumPy header.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-128136

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins