CVE-2026-0846
highpriority · track · 30EPSS 0.006 · 46 %ileEUFRRUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.9–8.6
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-h8wq-7xc4-p3qxNLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()2026-03-09ghsa · osvUS
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.
- CERTFR-2026-AVI-1378Multiples vulnérabilités dans les produits IBMFrançais2026-10-23vendor · certfrFR
- PYSEC-2026-972026-03-09vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-0846cnnvd
- https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97ebcnnvd
- https://www.nltk.org/install.htmlPatchcnnvd
- https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97ebenisa_euvd
- https://access.redhat.com/errata/RHSA-2026:10184nvd
- https://access.redhat.com/errata/RHSA-2026:19712nvd
- https://access.redhat.com/security/cve/CVE-2026-0846nvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2445826nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan