CVE-2026-81726
PoC massPath Traversal in NLTK Model-Artifact APIs Bypasses Pathsec Sandbox
NLTK through 3.10.3 contains a path traversal vulnerability (CWE-73, external control of file name or path) in its model-artifact APIs, which perform raw file operations on caller-controlled paths. This bypasses the pathsec sandbox enforcement: when pathsec is enabled, calls made through TransitionParser, AveragedPerceptron, PerceptronTagger, and maxent parameter APIs can still touch files outside the allowed sandbox roots if those APIs receive attacker-controlled path arguments. An attacker who can influence those paths gains the ability to read or write files outside the intended sandbox root on the host running NLTK, limited by the service's filesystem permissions. Any application or service running a vulnerable NLTK version, with pathsec sandboxing enabled and user-supplied paths passed to the listed APIs, is affected, while offline research or teaching use is largely unexposed. A public advisory (GHSA-8mgp-746c-j5xp) exists, but there are no confirmed in-the-wild exploits: the flaw is not in CISA KEV and EPSS assigns a roughly 0.3% probability of exploitation in the next 30 days.
What to do: Upgrade NLTK to the first fixed release published after 3.10.3, checking the GitHub advisory GHSA-8mgp-746c-j5xp for the patched version. Until patched, avoid passing untrusted or user-controlled paths to TransitionParser, AveragedPerceptron, PerceptronTagger, and maxent parameter APIs, and validate/normalize paths against the intended sandbox root. Given low EPSS (0.3%) and no KEV listing, prioritize patching for network-facing services that use these APIs with pathsec enabled.
| nltk | all versions through and including 3.10.3 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
NLTK through 3.10.3 contains a path traversal vulnerability in model-artifact APIs that bypass pathsec enforcement by using raw file operations on caller-controlled paths. Attackers can read or write files outside allowed sandbox roots through TransitionParser, AveragedPerceptron, PerceptronTagger, and maxent parameter APIs when pathsec is enabled.
- Vendors
- nltk
- Products
- nltk
- Weakness
- CWE-73
- Vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.