Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Nltk | Nltk | <= 3.9.3 |
Related Weaknesses (CWE)
References
- https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efbExploitThird Party Advisory
- https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efbExploitThird Party Advisory
FAQ
What is CVE-2026-12252?
CVE-2026-12252 is a vulnerability with a CVSS score of 7.8 (HIGH). In nltk/nltk versions 3.9.3 and earlier, five Stanford interface classes (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, and StanfordNeuralDependencyParser) are vulner...
How severe is CVE-2026-12252?
CVE-2026-12252 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-12252?
Check the references section above for vendor advisories and patch information. Affected products include: Nltk Nltk.