Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling… (CVE-2026-63312)

0
High
Published: 08/22/2026 (08/22/2026, 15:31:03 UTC)
Source: GCVE Database

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

nltk
pkg:pypi/nltk
Affected versions
<3.10.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/22/2026, 22:53:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses