CVE-2026-12252
Reported by @huntr_ai · Published July 4, 2026
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk/nltk | unspecified |
| nltk | nltk/nltk | unspecified, unspecified |
Timeline
- Jul 4, 2026 EPSS Score
- Jul 4, 2026 Coalition ESS Score
- Jul 4, 2026 CVE Published
- Jul 6, 2026 Security Advisory
- Jul 8, 2026 CVE Updated
- Aug 7, 2026 EPSS Score
- Aug 24, 2026 EPSS Score
- Sep 4, 2026 EPSS Score
- Sep 12, 2026 EPSS Score
- Sep 17, 2026 EPSS Score
- Sep 18, 2026 EPSS Score
- Sep 24, 2026 EPSS Score