{"id":"CVE-2025-71408","aliases":["DEBIAN-CVE-2025-71408","GHSA-848c-c2cx-j7qx","PYSEC-2026-3657","UBUNTU-CVE-2025-71408"],"summary":"NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments","published_at":"2026-07-24T21:07:49.61Z","modified_at":"2026-10-09T09:47:29.862523Z","products":[],"rating":{"severity":"high","score":8.5,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"important"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0026499999221414328,"percentile":0.18684999644756317,"date":"2026-11-19T00:00:00Z"},"priority":8,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"ntlk/ntlk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"fixed":["3.9.3"],"provider":"cvelistv5","source":"CVE-2025-71408","relation":"self"},{"ecosystem":"Debian:12","package":"nltk","purl":"pkg:deb/debian/nltk?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.0-1","3.10.1-1","3.10.3-1","3.8-1","3.8.1-1","3.9.1-1","3.9.1-2","3.9.2-1","3.9.3-1"],"provider":"osv","source":"DEBIAN-CVE-2025-71408","relation":"self"},{"ecosystem":"Debian:13","package":"nltk","purl":"pkg:deb/debian/nltk?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.0-1","3.10.1-1","3.10.3-1","3.9.1-2","3.9.2-1","3.9.3-1"],"provider":"osv","source":"DEBIAN-CVE-2025-71408","relation":"self"},{"ecosystem":"Debian:14","package":"nltk","purl":"pkg:deb/debian/nltk?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3-1"}]}],"versions":["3.9.1-2","3.9.2-1"],"fixed":["3.9.3-1"],"provider":"osv","source":"DEBIAN-CVE-2025-71408","relation":"self"},{"ecosystem":"NVD","package":"nltk:nltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"fixed":["3.9.3"],"provider":"nvd","source":"CVE-2025-71408","relation":"self"},{"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"versions":["0.8","0.9","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","2.0.1","2.0.1rc1","2.0.1rc2-git","2.0.1rc3","2.0.1rc4","2.0.2","2.0.3","2.0.4","2.0.5","2.0b4","2.0b5","2.0b6","2.0b7","2.0b8","2.0b9","3.0.0","3.0.0b1","3.0.0b2","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.3","3.4","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.5","3.5b1","3.6","3.6.1","3.6.2","3.6.3","3.6.4","3.6.5","3.6.6","3.6.7","3.7","3.8","3.8.1","3.9","3.9.1","3.9.2","3.9b1"],"fixed":["3.9.3"],"provider":"osv","source":"GHSA-848c-c2cx-j7qx","relation":"self"},{"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"versions":["0.8","0.9","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","2.0.1","2.0.1rc1","2.0.1rc2-git","2.0.1rc3","2.0.1rc4","2.0.2","2.0.3","2.0.4","2.0.5","2.0b4","2.0b5","2.0b6","2.0b7","2.0b8","2.0b9","3.0.0","3.0.0b1","3.0.0b2","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.3","3.4","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.5","3.5b1","3.6","3.6.1","3.6.2","3.6.3","3.6.4","3.6.5","3.6.6","3.6.7","3.7","3.8","3.8.1","3.9","3.9.1","3.9.2","3.9b1"],"fixed":["3.9.3"],"provider":"osv","source":"PYSEC-2026-3657","relation":"self"},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-infra-legacy%2Ftrusty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0~b9-0ubuntu4","2.0~b9-0ubuntu4.1~esm2","2.0~b9-0ubuntu4.1~esm4","2.0~b9-0ubuntu4.1~esm5","2.0~b9-0ubuntu4.1~esm6"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps-legacy%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.4-1","3.0.5-1","3.1-1","3.1-1ubuntu0.1","3.1-1ubuntu0.1+esm1","3.1-1ubuntu0.1+esm2","3.1-1ubuntu0.1+esm3","3.1-1ubuntu0.1+esm4"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.4-1","3.2.5-1","3.2.5-1ubuntu0.1","3.2.5-1ubuntu0.1+esm1","3.2.5-1ubuntu0.1+esm2","3.2.5-1ubuntu0.1+esm3","3.2.5-1ubuntu0.1+esm4"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.5-1","3.4.5-2","3.4.5-2ubuntu0.1~esm1","3.4.5-2ubuntu0.1~esm2","3.4.5-2ubuntu0.1~esm3","3.4.5-2ubuntu0.1~esm4"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.5-1","3.6.5-1","3.6.7-1","3.7-1","3.7-1ubuntu0.1~esm1","3.7-1ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.8.1-1","3.8.1-1ubuntu0.1~esm1","3.8.1-1ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fresolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.1-2","3.9.1-2build1","3.9.2-1","3.9.2-1ubuntu0.1~esm1","3.9.2-1ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Package Hub 15 SP7","status":"fixed","packages":["python3-nltk"],"package_count":1,"fixed":["python3-nltk-3.7-bp157.3.15.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Exploit Intelligence","cpe":"cpe:/a:redhat:exploit_intelligence:0","status":"affected","packages":["exploit-intelligence-tech-preview/vulnerability-analysis-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Lightspeed Core","cpe":"cpe:/a:redhat:lightspeed_core","status":"not_affected","packages":["lightspeed-core/lightspeed-stack-rhel9","lightspeed-core/rag-tool-cpu-rhel9","lightspeed-core/rag-tool-cuda-12.9-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"not_affected","packages":["openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9","openshift-lightspeed/lightspeed-ocp-rag-rhel9","openshift-lightspeed/lightspeed-service-api-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-25/lightspeed-chatbot-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-ta-lmes-job-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-ogx-core-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9","rhoai/odh-trustyai-nemo-guardrails-server-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"fixed","packages":["rhoai/odh-llama-stack-core-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:73987"],"provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"not_affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-routing-sidecar-rhel9","rhoai/odh-maas-api-rhel9","rhoai/odh-ml-pipelines-api-server-v2-rhel9","rhoai/odh-ml-pipelines-driver-rhel9","rhoai/odh-ml-pipelines-launcher-rhel9","rhoai/odh-ml-pipelines-persistenceagent-v2-rhel9"],"package_count":82,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-71408","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-71408","license":"CC-BY-4.0","published_at":"2026-07-24T21:07:49.61Z","modified_at":"2026-10-08T15:21:35.203Z","summary":"NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments","details":"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.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"CVE-2025-71408"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2025-71408"}],"affected":[{"ecosystem":"CVE","package":"ntlk/ntlk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"fixed":["3.9.3"],"provider":"cvelistv5","source":"CVE-2025-71408","relation":"self"}],"product_status":[],"references":[{"type":"EXPLOIT","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/"},{"type":"FIX","url":"https://github.com/nltk/nltk/releases/tag/3.9.3"},{"type":"FIX","url":"https://github.com/nltk/nltk/pull/3465"},{"type":"FIX","url":"https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments"}]},{"provider":"csaf-suse","source_id":"CVE-2025-71408","relation":"self","url":"https://www.suse.com/security/cve/CVE-2025-71408/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-07-28T17:22:57Z","modified_at":"2026-08-01T17:05:31Z","summary":"SUSE CVE CVE-2025-71408","details":"SUSE CVE-2025-71408\n\nNLTK (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.","severity":[{"type":"SUSE","score":"important","source":"CVE-2025-71408"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Package Hub 15 SP7","status":"fixed","packages":["python3-nltk"],"package_count":1,"fixed":["python3-nltk-3.7-bp157.3.15.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-71408"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-71408"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1272667"}]},{"provider":"nvd","source_id":"CVE-2025-71408","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71408","severity":[],"affected":[{"ecosystem":"NVD","package":"nltk:nltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"fixed":["3.9.3"],"provider":"nvd","source":"CVE-2025-71408","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2025-71408","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-71408","published_at":"2026-07-24T22:16:50.063Z","modified_at":"2026-10-09T09:47:29.862523Z","details":"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.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"DEBIAN-CVE-2025-71408"}],"affected":[{"ecosystem":"Debian:12","package":"nltk","purl":"pkg:deb/debian/nltk?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.0-1","3.10.1-1","3.10.3-1","3.8-1","3.8.1-1","3.9.1-1","3.9.1-2","3.9.2-1","3.9.3-1"],"provider":"osv","source":"DEBIAN-CVE-2025-71408","relation":"self"},{"ecosystem":"Debian:13","package":"nltk","purl":"pkg:deb/debian/nltk?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.0-1","3.10.1-1","3.10.3-1","3.9.1-2","3.9.2-1","3.9.3-1"],"provider":"osv","source":"DEBIAN-CVE-2025-71408","relation":"self"},{"ecosystem":"Debian:14","package":"nltk","purl":"pkg:deb/debian/nltk?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3-1"}]}],"versions":["3.9.1-2","3.9.2-1"],"fixed":["3.9.3-1"],"provider":"osv","source":"DEBIAN-CVE-2025-71408","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2025-71408"}]},{"provider":"osv","source_id":"GHSA-848c-c2cx-j7qx","relation":"self","url":"https://osv.dev/vulnerability/GHSA-848c-c2cx-j7qx","license":"CC-BY-4.0","published_at":"2026-07-25T00:31:47Z","modified_at":"2026-08-12T19:59:11.940439Z","summary":"NLTK vulnerable to Eval Injection via collocations CLI arguments","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-848c-c2cx-j7qx"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"GHSA-848c-c2cx-j7qx"}],"affected":[{"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"versions":["0.8","0.9","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","2.0.1","2.0.1rc1","2.0.1rc2-git","2.0.1rc3","2.0.1rc4","2.0.2","2.0.3","2.0.4","2.0.5","2.0b4","2.0b5","2.0b6","2.0b7","2.0b8","2.0b9","3.0.0","3.0.0b1","3.0.0b2","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.3","3.4","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.5","3.5b1","3.6","3.6.1","3.6.2","3.6.3","3.6.4","3.6.5","3.6.6","3.6.7","3.7","3.8","3.8.1","3.9","3.9.1","3.9.2","3.9b1"],"fixed":["3.9.3"],"provider":"osv","source":"GHSA-848c-c2cx-j7qx","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71408"},{"type":"WEB","url":"https://github.com/nltk/nltk/pull/3465"},{"type":"WEB","url":"https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac"},{"type":"WEB","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval"},{"type":"PACKAGE","url":"https://github.com/nltk/nltk"},{"type":"WEB","url":"https://github.com/nltk/nltk/releases/tag/3.9.3"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3657.yaml"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments"}]},{"provider":"osv","source_id":"PYSEC-2026-3657","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-3657","license":"CC-BY-4.0","published_at":"2026-07-24T22:16:50.063Z","modified_at":"2026-08-19T12:15:03.319052Z","details":"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.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"PYSEC-2026-3657"}],"affected":[{"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"versions":["0.8","0.9","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","2.0.1","2.0.1rc1","2.0.1rc2-git","2.0.1rc3","2.0.1rc4","2.0.2","2.0.3","2.0.4","2.0.5","2.0b4","2.0b5","2.0b6","2.0b7","2.0b8","2.0b9","3.0.0","3.0.0b1","3.0.0b2","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.3","3.4","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.5","3.5b1","3.6","3.6.1","3.6.2","3.6.3","3.6.4","3.6.5","3.6.6","3.6.7","3.7","3.8","3.8.1","3.9","3.9.1","3.9.2","3.9b1"],"fixed":["3.9.3"],"provider":"osv","source":"PYSEC-2026-3657","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/nltk/nltk/releases/tag/3.9.3"},{"type":"FIX","url":"https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac"},{"type":"FIX","url":"https://github.com/nltk/nltk/pull/3465"},{"type":"FIX","url":"https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments"},{"type":"EVIDENCE","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-848c-c2cx-j7qx"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2025-71408","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2025-71408","license":"CC-BY-SA-4.0","published_at":"2026-07-24T22:16:00Z","modified_at":"2026-07-29T07:53:10Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2025-71408"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"UBUNTU-CVE-2025-71408"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2025-71408"}],"affected":[{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-infra-legacy%2Ftrusty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0~b9-0ubuntu4","2.0~b9-0ubuntu4.1~esm2","2.0~b9-0ubuntu4.1~esm4","2.0~b9-0ubuntu4.1~esm5","2.0~b9-0ubuntu4.1~esm6"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps-legacy%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.4-1","3.0.5-1","3.1-1","3.1-1ubuntu0.1","3.1-1ubuntu0.1+esm1","3.1-1ubuntu0.1+esm2","3.1-1ubuntu0.1+esm3","3.1-1ubuntu0.1+esm4"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.4-1","3.2.5-1","3.2.5-1ubuntu0.1","3.2.5-1ubuntu0.1+esm1","3.2.5-1ubuntu0.1+esm2","3.2.5-1ubuntu0.1+esm3","3.2.5-1ubuntu0.1+esm4"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.5-1","3.4.5-2","3.4.5-2ubuntu0.1~esm1","3.4.5-2ubuntu0.1~esm2","3.4.5-2ubuntu0.1~esm3","3.4.5-2ubuntu0.1~esm4"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.5-1","3.6.5-1","3.6.7-1","3.7-1","3.7-1ubuntu0.1~esm1","3.7-1ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.8.1-1","3.8.1-1ubuntu0.1~esm1","3.8.1-1ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"nltk","purl":"pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps%2Fresolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.1-2","3.9.1-2build1","3.9.2-1","3.9.2-1ubuntu0.1~esm1","3.9.2-1ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2025-71408","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-71408"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-71408"},{"type":"REPORT","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/"},{"type":"REPORT","url":"https://github.com/nltk/nltk/pull/3465"},{"type":"REPORT","url":"https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac"},{"type":"REPORT","url":"https://github.com/nltk/nltk/releases/tag/3.9.3"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments"}]},{"provider":"redhat-vex","source_id":"CVE-2025-71408","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-71408","license":"CC-BY-4.0","published_at":"2026-07-24T21:07:49.61Z","modified_at":"2026-09-04T04:37:47Z","summary":"nltk: NLTK: Arbitrary Code Execution via Eval Injection in Collocations Module","details":"A flaw was found in NLTK (Natural Language Toolkit). This eval injection vulnerability in the `nltk.collocations` module allows a local attacker to execute arbitrary Python code. By manipulating command-line arguments when `collocations.py` is invoked directly, an attacker can bypass validation and execute operating system commands. This can lead to significant impact on the system's confidentiality, integrity, and availability.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2025-71408"},{"type":"Red Hat","score":"Important","source":"CVE-2025-71408"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Exploit Intelligence","cpe":"cpe:/a:redhat:exploit_intelligence:0","status":"affected","packages":["exploit-intelligence-tech-preview/vulnerability-analysis-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Lightspeed Core","cpe":"cpe:/a:redhat:lightspeed_core","status":"not_affected","packages":["lightspeed-core/lightspeed-stack-rhel9","lightspeed-core/rag-tool-cpu-rhel9","lightspeed-core/rag-tool-cuda-12.9-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"not_affected","packages":["openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9","openshift-lightspeed/lightspeed-ocp-rag-rhel9","openshift-lightspeed/lightspeed-service-api-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-25/lightspeed-chatbot-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-ta-lmes-job-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-ogx-core-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9","rhoai/odh-trustyai-nemo-guardrails-server-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"fixed","packages":["rhoai/odh-llama-stack-core-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:73987"],"provider":"redhat-vex","source":"CVE-2025-71408"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"not_affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-routing-sidecar-rhel9","rhoai/odh-maas-api-rhel9","rhoai/odh-ml-pipelines-api-server-v2-rhel9","rhoai/odh-ml-pipelines-driver-rhel9","rhoai/odh-ml-pipelines-launcher-rhel9","rhoai/odh-ml-pipelines-persistenceagent-v2-rhel9"],"package_count":82,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71408"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71408.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-71408"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2506944"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-71408"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71408"},{"type":"WEB","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/"},{"type":"WEB","url":"https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac"},{"type":"WEB","url":"https://github.com/nltk/nltk/pull/3465"},{"type":"WEB","url":"https://github.com/nltk/nltk/releases/tag/3.9.3"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments"}]}],"references":[{"type":"EXPLOIT","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/"},{"type":"FIX","url":"https://github.com/nltk/nltk/releases/tag/3.9.3"},{"type":"FIX","url":"https://github.com/nltk/nltk/pull/3465"},{"type":"FIX","url":"https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-71408"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1272667"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2025-71408"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71408"},{"type":"WEB","url":"https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval"},{"type":"PACKAGE","url":"https://github.com/nltk/nltk"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3657.yaml"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-848c-c2cx-j7qx"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-71408"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-71408"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71408.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-71408"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2506944"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-71408","url":"https://www.cve.org/CVERecord?id=CVE-2025-71408","license":"CC-BY-4.0","modified_at":"2026-10-08T15:21:35.203Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2025-71408","url":"https://www.suse.com/security/cve/CVE-2025-71408/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-08-01T17:05:31Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2025-71408","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71408","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2025-71408","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-71408","modified_at":"2026-10-09T09:47:29.862523Z","relation":"self"},{"provider":"osv","source_id":"GHSA-848c-c2cx-j7qx","url":"https://osv.dev/vulnerability/GHSA-848c-c2cx-j7qx","license":"CC-BY-4.0","modified_at":"2026-08-12T19:59:11.940439Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-3657","url":"https://osv.dev/vulnerability/PYSEC-2026-3657","license":"CC-BY-4.0","modified_at":"2026-08-19T12:15:03.319052Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2025-71408","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2025-71408","license":"CC-BY-SA-4.0","modified_at":"2026-07-29T07:53:10Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-71408","url":"https://access.redhat.com/security/cve/CVE-2025-71408","license":"CC-BY-4.0","modified_at":"2026-09-04T04:37:47Z","relation":"self"}]}
