NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ntlk | ntlk | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ntlk | Ntlk |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-848c-c2cx-j7qx | NLTK vulnerable to Eval Injection via collocations CLI arguments |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.265% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ntlk
Ntlk ntlk |
|
| Vendors & Products |
Ntlk
Ntlk ntlk |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | NLTK < 3.9.2 Eval Injection via collocations.py Command-Line Arguments | NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | NLTK (Natural Language Toolkit) before version 3.9.3 contains an eval injection vulnerability in the nltk.collocations module that allows an attacker who controls command-line arguments to execute arbitrary Python code. When collocations.py is invoked directly, the __main__ block passes command-line arguments directly to eval() as suffixes of BigramAssocMeasures without allowlist validation or sanitization, enabling an attacker to supply a Python expression that escapes the intended attribute lookup and executes arbitrary code including OS commands via the os module. | |
| Title | NLTK < 3.9.2 Eval Injection via collocations.py Command-Line Arguments | |
| Weaknesses | CWE-95 | |
| References |
|
|
| Metrics |
cvssV3_1
|