CVE-2026-63312 json
NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read
published 3mo ago modified 28d ago also EUVD-2026-64333 , GHSA-x5ph-mj9p-rfr8 , PYSEC-2026-3730
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling builtins.open() directly instead of pathsec.open(). Attackers who control the fileid argument can read arbitrary local files regardless of the ENFORCE setting, including sensitive system files and application credentials.
Patch / fix
- pypi nltk 3.10.0
- nltk nltk 3.10.0
- nltk Debian 14 3.10.0-1
debian advisories DEBIAN-CVE-2026-63312
- github.com/nltk/nltk@674ea75 commit
- github.com/nltk/nltk#3588 pull request
- github.com/nltk/nltk/releases/tag/v3.10.0 release
Is CVE-2026-63312 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-63312 updated cvss 7.5
nltk: NLTK: Arbitrary file read via StreamBackedCorpusView bypass
-
Red Hat Lightspeed Core lightspeed-core/rag-tool-cpu-rhel9, lightspeed-core/lightspeed-stack-rhel9, lightspeed-core/rag-tool-cuda-12.9-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/lightspeed-chatbot-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-ocp-rag-rhel9, openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-ogx-core-rhel9, rhoai/odh-ta-lmes-job-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9, rhoai/odh-trustyai-nemo-guardrails-server-rhel9, rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9, +1 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2mo ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | nltk | <3.10.0 |
3.10.0 |
Affected products
- nltk nltk
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/nltk/nltk/pull/3588
web
-
github.com
/nltk/nltk/commit/674ea75accdf08eca3782dee0a9c4ed7e0d0025b
web
-
github.com
/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8
vendor-advisory, exploit, web, evidence, advisory
-
vulncheck.com
/advisories/nltk-streambackedcorpusview-bypasses-pathsec-enforce-arbitrary-file-read
third-party-advisory, web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-63312
advisory
-
github.com
/nltk/nltk
package
-
github.com
/nltk/nltk/releases/tag/v3.10.0
web
-
github.com
/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3730.yaml
web
Sources
- CVE List CVE-2026-63312
- GitHub Advisory GHSA-x5ph-mj9p-rfr8
- NVD CVE-2026-63312
- OSV PYSEC-2026-3730
- Maintainer advisory GHSA-x5ph-mj9p-rfr8
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of nltk/nltk published their own advisory on GitHub. Reviewed sources take precedence over it.