| Name | CVE-2026-12252 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1143456 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| nltk (PTS) | bullseye | 3.5-1 | vulnerable |
| bookworm | 3.8-1 | vulnerable | |
| trixie | 3.9.1-2 | vulnerable | |
| forky | 3.10.1-1 | vulnerable | |
| sid | 3.10.3-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| nltk | source | (unstable) | 3.10.3-1 | 1143456 |
[trixie] - nltk <no-dsa> (Minor issue)
[bookworm] - nltk <postponed> (Minor issue)
[bullseye] - nltk <postponed> (Minor issue)
https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb