Live threats

All CVEs / Nltk

CVE-2026-12252Nltk

High 7.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nltk.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
nltknltk≤ 3.9.3

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.