CVE-2026-12252

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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*

History

08 Jul 2026, 15:01

Type Values Removed Values Added
First Time Nltk
Nltk nltk
References () https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb - () https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb - Exploit, Third Party Advisory
CPE cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*

06 Jul 2026, 19:16

Type Values Removed Values Added
References () https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb - () https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb -

04 Jul 2026, 02:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-04 02:16

Updated : 2026-07-08 15:01


NVD link : CVE-2026-12252

Mitre link : CVE-2026-12252

CVE.ORG link : CVE-2026-12252


JSON object : View

Products Affected

nltk

  • nltk
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')