Security mailing lists by PureSourceCode

CVE-2026-12252

HIGH 7.8CVSS 3.0

NLTK Stanford wrapper classes execute untrusted JAR files without verification

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.

Published
4 Jul 2026
Last modified
25 Oct 2026
Assigned by
security@huntr.dev
NVD status
Analyzed
Weakness
CWE-94
Also known as
GHSA-9r6g-266r-89x4PYSEC-2026-2085
Sources
NVDJSONOSV GHSA-9r6g-266r-89x4JSONOSV PYSEC-2026-2085JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@huntr.dev (Secondary) CVSS 3.0 HIGH 7.8 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 HIGH 7.8 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.0 HIGH 7.8 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nltk nltk
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
<= 3.9.3
OSV PyPI nltk < 3.9.4 3.9.4

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 4 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.