{"cve":"CVE-2026-0846","nvd":{"published":"2026-03-09T20:16:05.703","modified":"2026-07-15T02:17:57.207","status":"Modified","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.","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-36","CWE-22"],"references":["https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb","https://access.redhat.com/errata/RHSA-2026:10184","https://access.redhat.com/errata/RHSA-2026:19712","https://access.redhat.com/security/cve/CVE-2026-0846","https://bugzilla.redhat.com/show_bug.cgi?id=2445826"],"products":["nltk:nltk"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-0846","score":0.00551,"percentile":0.46116,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h8wq-7xc4-p3qx","url":"https://osv.dev/vulnerability/GHSA-h8wq-7xc4-p3qx","summary":"NLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()","modified":"2026-06-08T18:45:17.792312901Z","packages":[{"ecosystem":"PyPI","name":"nltk","purl":"pkg:pypi/nltk","ranges":["<3.9.3"],"fixed":["3.9.3"]}]},{"id":"PYSEC-2026-97","url":"https://osv.dev/vulnerability/PYSEC-2026-97","summary":"","modified":"2026-06-10T17:02:23.828594589Z","packages":[{"ecosystem":"PyPI","name":"nltk","purl":"pkg:pypi/nltk","ranges":["<=3.9.2"],"fixed":[]}]}],"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."]}