NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling… (CVE-2026-63312)
NLTK versions prior to 3.10.0 contain a high-severity arbitrary local file read vulnerability in the StreamBackedCorpusView component. This flaw allows attackers who can control the fileid argument to bypass the pathsec.ENFORCE security mechanism by invoking builtins.open() directly instead of pathsec.open(). As a result, attackers can read arbitrary local files, including sensitive system files and application credentials, without requiring privileges or user interaction.
AI Analysis
Technical Summary
The vulnerability in NLTK before version 3.10.0 exists because StreamBackedCorpusView bypasses the pathsec.ENFORCE restriction by calling the built-in open() function directly rather than using pathsec.open(). This allows an attacker controlling the fileid parameter to read arbitrary local files on the system, circumventing intended path security controls. The CVSS 3.1 score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact. No patch or official remediation details are provided in the available data.
Potential Impact
An unauthenticated attacker can read arbitrary local files on a system running vulnerable NLTK versions, potentially exposing sensitive system files and application credentials. This compromises confidentiality but does not affect integrity or availability. The vulnerability can be exploited remotely without user interaction or privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted input for the fileid argument in StreamBackedCorpusView or apply manual code review and restrictions to prevent arbitrary file access.
NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling… (CVE-2026-63312)
Description
NLTK versions prior to 3.10.0 contain a high-severity arbitrary local file read vulnerability in the StreamBackedCorpusView component. This flaw allows attackers who can control the fileid argument to bypass the pathsec.ENFORCE security mechanism by invoking builtins.open() directly instead of pathsec.open(). As a result, attackers can read arbitrary local files, including sensitive system files and application credentials, without requiring privileges or user interaction.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in NLTK before version 3.10.0 exists because StreamBackedCorpusView bypasses the pathsec.ENFORCE restriction by calling the built-in open() function directly rather than using pathsec.open(). This allows an attacker controlling the fileid parameter to read arbitrary local files on the system, circumventing intended path security controls. The CVSS 3.1 score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact. No patch or official remediation details are provided in the available data.
Potential Impact
An unauthenticated attacker can read arbitrary local files on a system running vulnerable NLTK versions, potentially exposing sensitive system files and application credentials. This compromises confidentiality but does not affect integrity or availability. The vulnerability can be exploited remotely without user interaction or privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted input for the fileid argument in StreamBackedCorpusView or apply manual code review and restrictions to prevent arbitrary file access.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8w48-h75v-cxpv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63312"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a8a27f6acd9273b499bc945
Added to database: 08/22/2026, 22:51:34 UTC
Last enriched: 08/22/2026, 22:53:36 UTC
Last updated: 08/23/2026, 01:46:05 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.