CVE-2026-12252: nltk nltk - JNDI Injection
- Cve: CVE-2026-12252
- Name: nltk nltk - JNDI Injection
- 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.
- Impact: Attackers can execute arbitrary code remotely by supplying malicious JAR files, potentially leading to full system compromise.
- Remediation: Update to a version that applies SHA256 verification to all Stanford interface classes or latest available version.
- Vulnerability type: jndi_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00195
- Epss percentile: 0.09004
- Assignee: [email protected]
- Published at: 2026-07-04T02:16:23Z
- Age in days: 143
- Modified at: 2026-10-25T15:10:00Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12252
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb | nvd | 2026-07-04 |
References
| Url | Source | Tags |
|---|---|---|
| https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nltk:nltk | <= 3.9.3 | no | nvd | /v1/products/nltk/nltk |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nltk/nltk | commit, fix, package, pull, releases | yes | /v1/repositories/nltk/nltk |
Index
- Repositories: 765
- Repositories high signal: 377
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-07-04
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts