{"id":"CVE-2026-0847","published":"2026-03-04T18:25:30Z","modified":"2026-09-16T12:04:21Z","title":"Path Traversal in nltk/nltk","vendor":"nltk","product":"nltk/nltk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01,"percentile":0.63638,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/fc69914f-36a9-4c18-8503-10013b39f966","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-0847","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2444608","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0847.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":23.7,"factors":[{"name":"EPSS percentile","points":12.73},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-03-29","earliestUrl":"https://github.com/HyperPS/CVE-2026-0847","repos":[{"name":"HyperPS/CVE-2026-0847","url":"https://github.com/HyperPS/CVE-2026-0847","stars":0,"created":"2026-03-29"}]},"first":{"date":"2026-03-29","source":"PoC-in-GitHub","url":"https://github.com/HyperPS/CVE-2026-0847"},"provenance":"source"},"vendorSlug":"nltk","affectedVersions":[{"vendor":"nltk","product":"nltk/nltk","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-04T18:49:39.659563Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nltk","vulnerableRanges":["<3.9.3"],"patched":["3.9.3"],"from":["GHSA-68j8-pq59-fqgm","PYSEC-2026-98"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the nltk/nltk product, specifically within its multiple CorpusReader classes (including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader), fails to sanitize or validate file paths. An attacker who can reach the affected service over the network, without authentication or user interaction, can traverse directories to read arbitrary files on the server, such as system files, SSH private keys, and API tokens, and this is most relevant where user-controlled file inputs are processed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:17Z"},"euvd":{"id":"EUVD-2026-9475","exploited":false,"provenance":"source"}}