PoC Monitor
← All CVEs
CVE-2026-12252published 4 Jul 2026 00:58 UTCData: JSON · API

Nltk nltk/nltk

Untrusted JAR Code Execution in Multiple Stanford Interface Classes in nltk/nltk

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

nltk nltk/nltk
  • >= unspecified, <= latest
nltk (PyPI)
  • < 3.9.4

Fixed in 3.9.4

from GitHub Security Advisory GHSA-9r6g-266r-89x4

Mitigation

Upgrade nltk to 3.9.4 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published4 Jul 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.