CVE-2026-63312: NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read

Published Aug 22, 2026
·
Updated

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.

Affected Software

1 affected component
nltk StreamBackedCorpusView<3.10.0

Event History

Aug 22, 2026
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Aug 19, 58611
Event
via NVD·10:16 PM

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using NLTK versions before 3.10.0 are exposed if an attacker can control the fileid argument passed to StreamBackedCorpusView. The issue is remotely exploitable without authentication or user interaction when that control is available through an exposed application path.

2

Does enabling pathsec.ENFORCE prevent exploitation?

No. The vulnerable code calls builtins.open() directly rather than pathsec.open(), so the pathsec.ENFORCE setting is bypassed.

3

What can an attacker obtain through this issue?

An attacker can read arbitrary local files accessible to the running application, including sensitive system files and application credentials. The provided data describes confidentiality impact only; it does not indicate integrity or availability impact.

4

What should be done if updating is not immediately possible?

Do not allow untrusted input to control the fileid argument used by StreamBackedCorpusView. Restrict file identifiers to an application-defined allowlist rather than accepting paths or path-like values from users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203