# CVE-2026-0846: Arbitrary File Read via Absolute Path Input in nltk.util.filestring()

- Severity: High 7.5 (CVSS:3.1, scored by redhat-SADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-09T19:19:09.464Z
- Modified: 2026-09-16T12:04:21.353Z
- Also known as: GHSA-h8wq-7xc4-p3qx, PYSEC-2026-97
- Weaknesses: CWE-22, CWE-36
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- nltk nltk/nltk: from unspecified up to latest
- rhoai/odh-llama-stack-core-rhel9: no versions given (not affected: from 1775144403 before *)
- rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9: no versions given (not affected: from 1778262893 before *)
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given (not affected: from 1778263054 before *)
- lightspeed-core/lightspeed-stack-rhel9: no versions given
- openshift-lightspeed/lightspeed-ocp-rag-rhel9: no versions given
- openshift-lightspeed/lightspeed-service-api-rhel9: no versions given
- openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9: no versions given
- ansible-automation-platform-24/de-minimal-rhel8: no versions given
- ansible-automation-platform-24/de-minimal-rhel9: no versions given
- ansible-automation-platform-24/de-supported-rhel8: no versions given
- ansible-automation-platform-24/de-supported-rhel9: no versions given
- ansible-automation-platform-24/ee-minimal-rhel8: no versions given
- ansible-automation-platform-24/ee-minimal-rhel9: no versions given
- ansible-automation-platform-24/ee-supported-rhel8: no versions given
- ansible-automation-platform-24/ee-supported-rhel9: no versions given
- ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8: no versions given
- ansible-automation-platform-25/ansible-dev-tools-rhel8: no versions given
- ansible-automation-platform-25/de-minimal-rhel8: no versions given
- ansible-automation-platform-25/de-minimal-rhel9: no versions given
- ansible-automation-platform-25/de-supported-rhel8: no versions given
- ansible-automation-platform-25/de-supported-rhel9: no versions given
- ansible-automation-platform-25/ee-cloud-services-rhel9: no versions given
- ansible-automation-platform-25/ee-minimal-rhel8: no versions given
- ansible-automation-platform-25/ee-minimal-rhel9: no versions given
- ansible-automation-platform-25/ee-supported-rhel8: no versions given
- ansible-automation-platform-25/ee-supported-rhel9: no versions given
- ansible-automation-platform-25/lightspeed-chatbot-rhel8: no versions given
- ansible-automation-platform-26/ansible-dev-tools-rhel9: no versions given
- ansible-automation-platform-26/de-minimal-rhel9: no versions given
- ansible-automation-platform-26/de-supported-rhel9: no versions given
- ansible-automation-platform-26/ee-minimal-rhel9: no versions given
- ansible-automation-platform-26/ee-supported-rhel9: no versions given
- ansible-automation-platform-26/lightspeed-chatbot-rhel9: no versions given
- ansible-automation-platform/ee-minimal-rhel8: no versions given
- ansible-automation-platform/ee-minimal-rhel9: no versions given
- ansible-automation-platform-tech-preview/ansible-devspaces-rhel9: no versions given
- rhoai/odh-ta-lmes-job-rhel9: no versions given
- nltk (PyPI): before 3.9.3; up to 3.9.2
- nltk nltk: 3.9.2

## Every score

- @huntr_ai: CVSS:3.0 8.6 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 8.6 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb> (exploit, evidence, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-0846> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2445826> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json>
- <https://access.redhat.com/errata/RHSA-2026:10184> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:19712> (vendor-advisory)
- <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)

## Sources

- CVE List: [CVE-2026-0846](https://www.cve.org/CVERecord?id=CVE-2026-0846), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-h8wq-7xc4-p3qx](https://github.com/advisories/GHSA-h8wq-7xc4-p3qx), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2026-0846](https://nvd.nist.gov/vuln/detail/CVE-2026-0846), Public domain, modified 2026-07-15
- PyPA Advisory Database: [PYSEC-2026-97](https://osv.dev/vulnerability/PYSEC-2026-97), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2026-0846 · Whole record: https://cve.day/CVE-2026-0846.json · Rebuilt by cve.day 2026-11-25T22:59:15.541Z
