CVE-2026-70626: NLTK before 3.9.4 Symlink Escape via CorpusReader

Published Aug 22, 2026
·
Updated

NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink resolution, enabling attackers to place symlinks inside the corpus root to access files outside the intended boundary.

Affected Software

1 affected component
nltk nltk<3.9.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NLTK to a version that resolves this vulnerability.

    Fixed in 3.9.4
  2. Compensating control

    Ensure CorpusReader.open() path validation accounts for symlink resolution (i.e., validate the resolved/real path stays within the corpus root) to prevent symlink escape.

Event History

Aug 22, 2026
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using NLTK versions before 3.9.4 are exposed where a local attacker can create or control symlinks within a corpus root used by CorpusReader.open(). The impact is disclosure of files readable by the affected application outside that corpus root.

2

What does an attacker need to exploit it?

The attacker needs local access and the ability to place a symlink inside the corpus root. No privileges or user interaction are required according to the supplied vector.

3

How can this be mitigated if upgrading is not immediately possible?

Prevent untrusted local users or processes from creating, modifying, or placing symlinks in corpus root directories. Restrict filesystem permissions on corpus data and avoid using corpus roots in attacker-writable locations.

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