{"schemaVersion":3,"id":"CVE-2026-63312","aliases":["GHSA-x5ph-mj9p-rfr8","PYSEC-2026-3730","UBUNTU-CVE-2026-63312","DEBIAN-CVE-2026-63312"],"status":"published","duplicateOf":null,"title":null,"description":"NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling builtins.open() directly instead of pathsec.open(). Attackers who control the fileid argument can read arbitrary local files regardless of the ENFORCE setting, including sensitive system files and application credentials.","dates":{"published":"2026-08-22T14:12:40.731Z","modified":"2026-08-24T18:34:55.320Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"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":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"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":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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","exploitability":null,"impact":null,"computed":false},{"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}]},"epss":{"probability":0.00651,"percentile":0.50533,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.08800000000000005,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00563},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00651,"percentile":0.50533}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00651,"percentile":0.50533}]},"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":"GITHUB_NLTK_NLTK","name":"Nltk","source":"github","url":"https://github.com/nltk/nltk/security/advisories/GHSA-f8m6-h2c7-8h9x","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"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.10.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.10.0-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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"nltk","product":"nltk","name":"nltk","label":"nltk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.10.0","eol":null,"hubHref":"/vendor/nltk/nltk"},{"vendor":"PyPI","product":"nltk","name":"nltk","label":"nltk","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/nltk","purlType":"pypi","versions":[{"text":"< 3.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.10.0","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8","label":"github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8","hostname":"github.com","tags":["Vendor Advisory","WEB","EVIDENCE","Exploit"]},{"url":"https://www.vulncheck.com/advisories/nltk-streambackedcorpusview-bypasses-pathsec-enforce-arbitrary-file-read","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory","WEB","Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63312","label":"nvd.nist.gov/vuln/detail/CVE-2026-63312","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/nltk/nltk/pull/3588","label":"github.com/nltk/nltk/pull/3588","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/nltk/nltk/commit/674ea75accdf08eca3782dee0a9c4ed7e0d0025b","label":"github.com/nltk/nltk/commit/674ea75accdf08eca3782dee0a9c4ed7e0d0025b","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/nltk/nltk/releases/tag/v3.10.0","label":"github.com/nltk/nltk/releases/tag/v3.10.0","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3730.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3730.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-63312","label":"ubuntu.com/security/CVE-2026-63312","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-63312","label":"www.cve.org/CVERecord?id=CVE-2026-63312","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/nltk/nltk/security/advisories/ghsa-x5ph-mj9p-rfr8","label":"github.com/nltk/nltk/security/advisories/ghsa-x5ph-mj9p-rfr8","hostname":"github.com","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/cve-2026-63312","label":"security-tracker.debian.org/tracker/cve-2026-63312","hostname":"security-tracker.debian.org","tags":["REPORT"]},{"url":"https://github.com/cveproject/cvelistv5/tree/main/cves/2026/63xxx/cve-2026-63312.json","label":"github.com/cveproject/cvelistv5/tree/main/cves/2026/63xxx/cve-2026-63312.json","hostname":"github.com","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/cve-2026-63312","label":"nvd.nist.gov/vuln/detail/cve-2026-63312","hostname":"nvd.nist.gov","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-63312","label":"security-tracker.debian.org/tracker/CVE-2026-63312","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0340"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-22T14:12:40.731Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-24T18:34:55.320Z","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-21T16:06:48.641Z","stale":false,"partial":false}}