CVE-2026-0847: Path Traversal in nltk/nltk

Published Mar 4, 2026
·
Updated

A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.

Affected Software

4 affected componentsFixes available
pypi/nltk<=3.9.2
nltk nltk<=3.9.2
debian/nltk<=3.5-1, <=3.8-1, <=3.9.1-2
3.9.3-1
IBM watsonx.data intelligence<=5.2.2, 5.3.0, 5.3.1, 5.3.1-patch-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/nltk to a version that resolves this vulnerability.

    Fixed in 3.9.3-1

Event History

Mar 4, 2026
CVE Published
via MITRE·06:25 PM
Data Sourced
via MITRE·06:25 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software
May 25, 2026
Data Sourced
via Ubuntu·10:06 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·10:08 PM
DescriptionAffected Software
Data Sourced
via Launchpad·10:08 PM
Description
Jun 24, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-0847?

CVE-2026-0847 is classified as a high-severity vulnerability due to its potential for arbitrary file read access.

2

How do I fix CVE-2026-0847?

To mitigate CVE-2026-0847, upgrade NLTK to version 3.9.3 or later which addresses the path traversal issue.

3

What software versions are affected by CVE-2026-0847?

NLTK versions up to and including 3.9.2 are affected by CVE-2026-0847, allowing path traversal vulnerabilities.

4

What does CVE-2026-0847 allow an attacker to do?

CVE-2026-0847 allows an attacker to read arbitrary files on the server by exploiting path traversal in specific CorpusReader classes.

5

Which classes in NLTK are vulnerable according to CVE-2026-0847?

The vulnerable classes include WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader in NLTK.

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