Skip to main content
← All vulnerabilities
CVE-2026-12252PYSEC-2026-2085GHSA-9R6G-266R-89X4

Untrusted JAR Code Execution in Multiple Stanford Interface Classes in nltk/nltk

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • nltk nltk/nltk

    Version range not reported

  • nltkPyPI

    fixed in 3.9.4

References 1

huntr.com