๐Ÿ” CVE Alert

CVE-2026-0848

CRITICAL 10.0

Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading

CVSS Score
10.0
EPSS Score
0.0%
EPSS Percentile
0th

NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamically loads external Java .jar files without verification or sandboxing. An attacker can supply or replace the JAR file, enabling the execution of arbitrary Java bytecode at import time. This vulnerability can be exploited through methods such as model poisoning, MITM attacks, or dependency poisoning, leading to remote code execution. The issue arises from the direct execution of the JAR file via subprocess with unvalidated classpath input, allowing malicious classes to execute when loaded by the JVM.

CWE CWE-20
Vendor nltk
Product nltk/nltk
Published Mar 5, 2026
Last Updated Mar 6, 2026
Stay Ahead of the Next One

Get instant alerts for nltk nltk/nltk

Be the first to know when new critical vulnerabilities affecting nltk nltk/nltk are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected Versions

nltk / nltk/nltk
unspecified โ‰ค latest

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
huntr.com: https://huntr.com/bounties/08b109bb-ac24-403f-9422-1c246ce60202