CVE-2026-12252Nltk
High 7.8
Follow: this CVE · Nltk · Nltk We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.0
- 7.8
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 4, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
In nltk/nltk versions 3.9.3 and earlier, five Stanford interface classes (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, and StanfordNeuralDependencyParser) are vulnerable to untrusted JAR code execution. These classes accept user-controllable JAR paths and execute them via the `java()` function, which invokes `subprocess.Popen()` without integrity verification. This vulnerability is identical to CVE-2026-0848, which was fixed for StanfordSegmenter by adding SHA256 verification. However, the fix was not applied to these additional classes, leaving them susceptible to arbitrary code execution when loading untrusted JAR files.
What to do
- Apply the vendor's security update for Nltk.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | nltk |
< 3.9.4 |
3.9.4 |
pip install "nltk>=3.9.4" |
| PyPI | nltk |
< 3.9.4 |
3.9.4 |
pip install "nltk>=3.9.4" |
Per OSV / GitHub Advisories (GHSA-9r6g-266r-89x4, PYSEC-2026-2085). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk | ≤ 3.9.3 |
Official advisories
- python313-nltk-3.10.3-1.1 on GA media · SUSE · openSUSE-SU-2026:11587-1 · Aug 24, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Third Party Advisory