{"cve":"CVE-2026-0847","nvd":{"published":"2026-03-04T19:16:10.683","modified":"2026-07-15T02:17:57.520","status":"Modified","description":"A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22"],"references":["https://huntr.com/bounties/fc69914f-36a9-4c18-8503-10013b39f966","https://access.redhat.com/errata/RHSA-2026:10184","https://access.redhat.com/errata/RHSA-2026:19712","https://access.redhat.com/security/cve/CVE-2026-0847","https://bugzilla.redhat.com/show_bug.cgi?id=2444608"],"products":["nltk:nltk"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-0847","score":0.01,"percentile":0.62826,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-68j8-pq59-fqgm","url":"https://osv.dev/vulnerability/GHSA-68j8-pq59-fqgm","summary":"NLTK has a Path Traversal issue","modified":"2026-06-08T18:45:17.778205034Z","packages":[{"ecosystem":"PyPI","name":"nltk","purl":"pkg:pypi/nltk","ranges":["<=3.9.2"],"fixed":[]}]},{"id":"PYSEC-2026-98","url":"https://osv.dev/vulnerability/PYSEC-2026-98","summary":"","modified":"2026-06-10T17:02:23.764228465Z","packages":[{"ecosystem":"PyPI","name":"nltk","purl":"pkg:pypi/nltk","ranges":["<3.9.3"],"fixed":["3.9.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}