7.8

CVE-2026-12252: nltk Code Injection

CVSS: 7.8v3.0HighAnalyzed
AliasesGHSA-9r6g-266r-89x4PYSEC-2026-2085UBUNTU-CVE-2026-12252
Published 04-07-2026Last modified 06-07-2026

Vulnerability summary

CVE-2026-12252 is a high (CVSS 7.8) Code Injection vulnerability in nltk. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.6% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.0 (CVE.org)
EPSS score
0.19%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 04-07-2026
    PublishedVulnerability first disclosed.
  2. 06-07-2026
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

-0.04 pp

From 0.24% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.19%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Nltk2 products
Debian1 product
  • nltkAll versions (No fix recorded) | < 3.10.3-1
PyPI1 product
  • nltk< 3.9.4
Ubuntu1 product
  • nltkAll versions (No fix recorded)

4 vendors · 5 products

References

12 links
Show all 12 references