CVE-2026-12252
Last modified
CVE-2026-12252 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nltk | Nltk | <= 3.9.3 |
References
- https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efbExploit, Third Party Advisory
- https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efbExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-12252?
How severe is CVE-2026-12252?
How do I fix CVE-2026-12252?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12245NSD from version 4.13.0 has a heap use-after-free bug in log…7.5
- CVE-2026-12246NSD version 4.14.0 introduced a bug where a specially crafte…8.1
- CVE-2026-12249An issue was discovered in Canonical ADSys upstream versions…9
- CVE-2026-1225ACE vulnerability in configuration file processing by QOS.C…1.8
- CVE-2026-12250Invocation of process using visible sensitive information vu…7.9
- CVE-2026-12251The Ultimate Member WordPress plugin before 2.12.1 does not…8.1
- CVE-2026-12255The MainWP Child WordPress plugin before 6.1.2 does not ver…8.1
- CVE-2026-12256Contributor PHP Object Injection in Avada <= 3.15.3 versions…8.8
- CVE-2026-12257Versions of Mura CMS prior to 10.0.712 contain a critical re…9.3
- CVE-2026-12259In nltk version 3.9.4, the `nltk.downloader.Downloader._down…5.3
- CVE-2026-1226CWE‑94: Improper Control of Generation of Code vulnerability…7
- CVE-2026-12261A vulnerability in `nltk.downloader` in nltk/nltk versions <…5.3
Are you affected by CVE-2026-12252?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
