home / blog

2026-11-22 · medium

CVE-2026-129233: NLTK External File Information Exposure

NLTK vulnerable to external file info disclosure. CVSS 5.3. Update to version 3.10.4.

CVE-2026-129233: NLTK External File Information Exposure

CVE-2026-129233 is a vulnerability present in versions 3.10.0 through 3.10.4 of the NLTK (Natural Language Toolkit) library, a suite of open source Python modules for natural language processing. The vulnerability affects the StreamBackedCorpusView component that performs os.stat on a caller-supplied path before pathsec containment is enforced. This could allow an attacker to obtain information about files outside the root directory such as existence, size, and modification time, even though opening the file would still be rejected.

The vulnerability has a CVSS score of 5.3, classified as medium severity. It has been identified and fixed in version 3.10.4 of NLTK. GitHub signals confirm the existence of the vulnerability and availability of the patch, indicating that the community has already begun analyzing the issue. The vulnerability requires application code to pass an attacker-influenced string directly to the public constructor, so it is not exploitable without specific application configuration.

Organizations using NLTK in vulnerable versions (3.10.0-3.10.4) should immediately update to version 3.10.4 which fixes the issue. No known active exploits are currently being used, but the availability of technical information on GitHub suggests the vulnerability could be exploited in the future. Additionally, developers should review their applications to ensure they don't pass untrusted strings directly to the StreamBackedCorpusView constructor, implementing appropriate path validation controls for user-supplied paths.

At a glance

What
Vulnerability in StreamBackedCorpusView performing os.stat on caller-supplied path before pathsec containment enforcement
Severity
Medium (CVSS 5.3)
Affected versions
NLTK 3.10.0 through 3.10.4
Fix
Update to version 3.10.4
Status
Patch available
Action
Apply patch by updating NLTK

Sources: NVD, CVE-2026-129233

← All articles