Skip to content
HighVulnerability

CVE-2026-0848: NLTK arbitrary code execution through StanfordSegmenter JAR loading

Identifier
CVE-2026-0848
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

NLTK versions <=3.9.2 are affected by CVE-2026-0848, an improper input validation flaw in the StanfordSegmenter module. The module loads external Java .jar files without verification or sandboxing, and the JAR is executed via subprocess with unvalidated classpath input. An attacker who supplies or replaces the JAR can run arbitrary Java bytecode at import time, reachable through model poisoning, MITM attacks, or dependency poisoning.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.