CVE-2026-0846
HIGH 7.5CVSS 3.1NLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
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.
- Published
- 9 Mar 2026
- Last modified
- 15 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-22CWE-36
- Also known as
- GHSA-h8wq-7xc4-p3qxPYSEC-2026-97
- Sources
- NVDJSONOSV GHSA-h8wq-7xc4-p3qxJSONOSV PYSEC-2026-97JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.0 | HIGH 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nltk | nltkcpe:2.3:a:nltk:nltk:3.9.2:*:*:*:*:*:*:* |
= 3.9.2 | |
| OSV | PyPI | nltk | < 3.9.3 | 3.9.3 |
| OSV | PyPI | nltk | <= 3.9.2 |
References
- https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb · Exploit, Vendor Advisory, WEB, EVIDENCE
- 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
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-0846 · ADVISORY
- https://github.com/nltk/nltk/pull/3485 · WEB
- https://github.com/nltk/nltk/commit/b2e1164bf89277f79b65406c829b99fb20ca1974 · WEB
- https://github.com/nltk/nltk · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-97.yaml · WEB
- https://github.com/advisories/GHSA-h8wq-7xc4-p3qx · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 9 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Mar 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Mar 2026)