Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-12252

nltk: nltk: Arbitrary Code Execution via Untrusted JAR File Loading

Overview

Published
4 Jul 2026
Modified
25 Oct 2026
High CVE
1 Registry packages
4 OS packages
4 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.8 · HIGH

CVSS 3.0 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness: CWE-94

Affected packages · 1

Packages affected by CVE-2026-12252
EcosystemPackageVulnerableFixed in
PyPI nltk <3.9.4 3.9.4

Open a package to see all its vulnerabilities.

Operating systems · 7 fixes

debian 4 releases · 1 package

affected 3 fixed 1
nltk
debian fixes for CVE-2026-12252
ReleasePackageFixed in
11 nltk affected
12 nltk affected
13 nltk affected
14 nltk 3.10.3-1

echo 1 release · 1 package

affected 1
nltk
echo fixes for CVE-2026-12252
ReleasePackageFixed in
nltk affected

minimos 1 release · 1 package

fixed 1
label-studio
minimos fixes for CVE-2026-12252
ReleasePackageFixed in
label-studio 1.23.1-r0

openSUSE 1 release · 1 package

fixed 1
python313-nltk
openSUSE fixes for CVE-2026-12252
ReleasePackageFixed inAdvisory
Tumbleweed python313-nltk +1 3.10.3-1.1 openSUSE-SU-2026:11587-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.