THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-j456-xh4h-cpf2 (high) — NLTK: WekaClassifier passes an unvalidated caller-controlled model path to the weka JVM, bypassing nltk.pathsec containment

[GHSA] GHSA-j456-xh4h-cpf2 (high) — NLTK: WekaClassifier passes an unvalidated caller-controlled model path to the weka JVM, bypassing nltk.pathsec containment

medgithub_advisoriesPublished 2026-10-27

GHSA-j456-xh4h-cpf2 Severity: high CVE: None

NLTK: WekaClassifier passes an unvalidated caller-controlled model path to the weka JVM, bypassing nltk.pathsec containment

## Summary `WekaClassifier` in NLTK passes a caller-controlled model file path to the weka Java VM without any `nltk.pathsec` validation. `WekaClassifier.train` puts the caller's `model_filename` verbatim into the weka argv `["-d

Indicators of compromise

Original source: https://github.com/advisories/GHSA-j456-xh4h-cpf2