CVE-2026-0846
published high CVSS 3.0 · 8.6Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nltk | — | nltk/nltkunspecified through latest | Affected | Not stated | @huntr_ai |
| Red Hat | — | rhoai/odh-llama-stack-core-rhel9Red Hat OpenShift AI 2.25 · 1775144403 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9Red Hat OpenShift AI 3.3 · 1778262893 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Red Hat OpenShift AI 3.3 · 1778263054 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Ubuntu | bionic | nltk | Advisory build | 3.2.5-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | bionic | python-nltk | Advisory build | 3.2.5-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | bionic | python3-nltk | Advisory build | 3.2.5-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | focal | nltk | Advisory build | 3.4.5-2ubuntu0.1~esm4 | USN-8302-1 |
Show 46 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | lightspeed-core/lightspeed-stack-rhel9Lightspeed Core | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-lightspeed/lightspeed-ocp-rag-rhel9OpenShift Lightspeed | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-lightspeed/lightspeed-service-api-rhel9OpenShift Lightspeed | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9OpenShift Lightspeed | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/de-minimal-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/de-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/de-supported-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/de-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/ee-minimal-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/ee-supported-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-24/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/ansible-dev-tools-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/de-minimal-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/de-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/de-supported-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/de-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/ee-cloud-services-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/ee-minimal-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/ee-supported-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/lightspeed-chatbot-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/ansible-dev-tools-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/de-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/de-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/lightspeed-chatbot-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform/ee-minimal-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-tech-preview/ansible-devspaces-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-ta-lmes-job-rhel9Red Hat OpenShift AI (RHOAI) | Affected | Not stated | redhat-SADP |
| Ubuntu | focal | python3-nltk | Advisory build | 3.4.5-2ubuntu0.1~esm4 | USN-8302-1 |
| Ubuntu | jammy | nltk | Advisory build | 3.7-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | jammy | python3-nltk | Advisory build | 3.7-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | noble | nltk | Advisory build | 3.8.1-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | noble | python3-nltk | Advisory build | 3.8.1-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | resolute | nltk | Advisory build | 3.9.2-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | resolute | python3-nltk | Advisory build | 3.9.2-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | trusty | nltk | Advisory build | 2.0~b9-0ubuntu4.1~esm6 | USN-8302-1 |
| Ubuntu | trusty | python-nltk | Advisory build | 2.0~b9-0ubuntu4.1~esm6 | USN-8302-1 |
| Ubuntu | xenial | nltk | Advisory build | 3.1-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | xenial | python-nltk | Advisory build | 3.1-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | xenial | python3-nltk | Advisory build | 3.1-1ubuntu0.1+esm4 | USN-8302-1 |
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.
A flaw was found in the `nltk` component. This vulnerability, specifically within the `filestring()` function of the `nltk.util` module, allows an attacker to perform arbitrary file reads. By providing specially crafted input paths, either absolute or using directory traversal, an attacker can bypass input validation and access sensitive system files. This can be exploited both locally and remotely, particularly when the function processes user-supplied input in applications like web APIs.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nltk | nltk/nltk | unspecified through latest (affected · custom) | @huntr_ai · cna |
| Red Hat | Red Hat OpenShift AI 2.25 | 1775144403 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.3 | 1778262893 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.3 | 1778263054 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Lightspeed Core | Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-36 CWE-36 Absolute Path Traversal
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
6- 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
- RHBZ#2445826 https://bugzilla.redhat.com/show_bug.cgi?id=2445826
- https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json
Provider assertions
3@huntr_ai · cna
Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
redhat-SADP · adp
nltk: NLTK: Arbitrary file read via improper path validation in `filestring()` function
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c70b2a5ef507b01e3d2862b02e587fe419908cf49069c33e768fc5401d2f497b
- Ingested
- 23 Sep 2026, 08:59:58 UTC
- Source record
- Official CVE record