{"schemaVersion":3,"id":"CVE-2026-0846","aliases":["GHSA-h8wq-7xc4-p3qx","PYSEC-2026-97","UBUNTU-CVE-2026-0846","DEBIAN-CVE-2026-0846"],"status":"published","duplicateOf":null,"title":null,"description":"A vulnerability in the `filestring()` function of the `nltk.util` module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files specified by user input without sanitization, enabling attackers to access sensitive system files by providing absolute paths or traversal paths. This vulnerability can be exploited locally or remotely, particularly in scenarios where the function is used in web APIs or other interfaces that accept user-supplied input.","dates":{"published":"2026-03-09T19:19:09.464Z","modified":"2026-09-16T12:04:21.353Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.6,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.6,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.6,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","exploitability":10,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.6,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00539,"percentile":0.44251,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.11099999999999999,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00428},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00539,"percentile":0.44251}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00539,"percentile":0.44251}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_B1D46DA86D1EE342","name":"Exploit Reference (huntr.com)","source":"reference","url":"https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-36","name":"Absolute Path Traversal","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as \"/abs/path\" that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/36.html"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"debian","product":"nltk","name":"nltk","label":"nltk","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nltk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.9.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.9.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nltk","name":"nltk","label":"nltk","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nltk","purlType":"deb","versions":[{"text":"< 2.0~b9-0ubuntu4.1~esm6","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1-1ubuntu0.1+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.5-1ubuntu0.1+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 3.4.5-2ubuntu0.1~esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 3.7-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.8.1-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.9.2-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0~b9-0ubuntu4.1~esm6 | < 3.1-1ubuntu0.1+esm4 | < 3.2.5-1ubuntu0.1+esm4 | < 3.4.5-2ubuntu0.1~esm4 | < 3.7-1ubuntu0.1~esm2 | < 3.8.1-1ubuntu0.1~esm2 | All versions (No fix recorded) | < 3.9.2-1ubuntu0.1~esm2","eol":null,"hubHref":null},{"vendor":"nltk","product":"nltk","name":"nltk","label":"nltk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.9.2","eol":null,"hubHref":"/vendor/nltk/nltk"},{"vendor":"nltk","product":"nltk/nltk","name":"nltk/nltk","label":"nltk/nltk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ latest","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ latest","eol":null,"hubHref":"/vendor/nltk/nltknltk"},{"vendor":"PyPI","product":"nltk","name":"nltk","label":"nltk","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/nltk","purlType":"pypi","versions":[{"text":"< 3.9.3","noFixRecorded":false,"fixedIn":null},{"text":"≤ 3.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.9.3 | ≤ 3.9.2","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb","label":"huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb","hostname":"huntr.com","tags":["WEB","EVIDENCE","REPORT","Exploit","Vendor Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-0846","label":"access.redhat.com/security/cve/CVE-2026-0846","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2445826","label":"bugzilla.redhat.com/show_bug.cgi?id=2445826","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","label":"access.redhat.com/errata/RHSA-2026:10184","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","label":"access.redhat.com/errata/RHSA-2026:19712","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0846","label":"nvd.nist.gov/vuln/detail/CVE-2026-0846","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/nltk/nltk/pull/3485","label":"github.com/nltk/nltk/pull/3485","hostname":"github.com","tags":["WEB","REPORT"]},{"url":"https://github.com/nltk/nltk/commit/b2e1164bf89277f79b65406c829b99fb20ca1974","label":"github.com/nltk/nltk/commit/b2e1164bf89277f79b65406c829b99fb20ca1974","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/nltk/nltk","label":"github.com/nltk/nltk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-97.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-97.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-h8wq-7xc4-p3qx","label":"github.com/advisories/GHSA-h8wq-7xc4-p3qx","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-0846","label":"ubuntu.com/security/CVE-2026-0846","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-0846","label":"www.cve.org/CVERecord?id=CVE-2026-0846","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/nltk/nltk/commit/1fc626969f013bba104a40e5e760b9d67b2994ea","label":"github.com/nltk/nltk/commit/1fc626969f013bba104a40e5e760b9d67b2994ea","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/nltk/nltk/commit/5c46f3dac7e0eb10ee7d9f7be9fe732b0ec0af25","label":"github.com/nltk/nltk/commit/5c46f3dac7e0eb10ee7d9f7be9fe732b0ec0af25","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8302-1","label":"ubuntu.com/security/notices/USN-8302-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-0846","label":"security-tracker.debian.org/tracker/CVE-2026-0846","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["USN-8302-1"]},"timeline":[{"kind":"published","date":"2026-03-09T19:19:09.464Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-16T12:04:21.353Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:52:58.461Z","stale":false,"partial":false}}