CVE-2026-12252
Received
Received - Intake
Code Execution in NLTK via Untrusted JAR in Stanford Interfaces
Vulnerability report for CVE-2026-12252, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-07-04
Last updated on: 2026-07-04
Assigner: huntr.dev
Description
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 Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| stanford | stanford_postagger | 3.9.3 |
| stanford | stanford_ner_tagger | 3.9.3 |
| stanford | stanford_parser | 3.9.3 |
| stanford | stanford_dependency_parser | 3.9.3 |
| stanford | stanford_neural_dependency_parser | 3.9.3 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |