Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| nltk | nltk/nltk | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Nltk | Nltk/nltk |
|
| Source | ID | Title |
|---|---|---|
Ubuntu USN |
USN-8302-1 | NLTK vulnerabilities |
No CVSS v4.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.841% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Nltk nltk
|
|
| Weaknesses | NVD-CWE-noinfo | |
| CPEs | cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Nltk nltk
|
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-829 | |
| References |
| |
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Nltk
Nltk nltk/nltk |
|
| Vendors & Products |
Nltk
Nltk nltk/nltk |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading | |
| Weaknesses | CWE-20 | |
| References |
| |
| Metrics |
cvssV3_0
|