{"id":82525,"date":"2026-07-25T00:37:49","date_gmt":"2026-07-24T21:07:49","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-71408-nltk-3-9-2-eval-injection-via-collocations-py-command-line-arguments\/"},"modified":"2026-07-25T00:37:49","modified_gmt":"2026-07-24T21:07:49","slug":"cve-2025-71408-nltk-3-9-2-eval-injection-via-collocations-py-command-line-arguments","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-71408-nltk-3-9-2-eval-injection-via-collocations-py-command-line-arguments\/","title":{"rendered":"CVE-2025-71408 &#8211; NLTK &lt; 3.9.2 Eval Injection via collocations.py Command-Line Arguments"},"content":{"rendered":"<p>CVE ID :CVE-2025-71408<\/p>\n<p>  Published : July 24, 2026, 9:07 p.m. | 43\u00a0minutes ago<\/p>\n<p>  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.<\/p>\n<p>  Severity: 8.5 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2025-71408 Published : July 24, 2026, 9:07 p.m. | 43\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82525","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82525"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82525\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}