The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-0847

CVE-2026-0847: NLTK Path Traversal Vulnerability

CVE-2026-0847 is a path traversal vulnerability in NLTK library versions up to 3.9.2 that allows attackers to read arbitrary files. This article covers technical details, affected versions, impact, and mitigation.

Published: March 6, 2026

CVE-2026-0847 Overview

A path traversal vulnerability exists in NLTK (Natural Language Toolkit) versions up to and including 3.9.2 that allows arbitrary file read through multiple CorpusReader classes. The affected classes include WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader, which fail to properly sanitize or validate file paths. This enables attackers to traverse directories and access sensitive files on the server.

This vulnerability is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Successful exploitation 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.

Critical Impact

Attackers can exploit path traversal sequences to read arbitrary files from the server, potentially exposing sensitive system files, credentials, and API tokens. This vulnerability is especially dangerous in production NLP services that accept user-controlled inputs.

Affected Products

  • NLTK versions up to and including 3.9.2
  • WordListCorpusReader class
  • TaggedCorpusReader class
  • BracketParseCorpusReader class

Discovery Timeline

  • 2026-03-04 - CVE CVE-2026-0847 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-0847

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, commonly known as Path Traversal). The issue stems from insufficient input validation in multiple NLTK CorpusReader classes when processing file path parameters.

When applications built on NLTK accept user-provided file paths and pass them to the vulnerable CorpusReader classes, the library fails to sanitize directory traversal sequences such as ../ or ..\\. This allows an attacker to escape the intended directory boundary and read arbitrary files from the file system, limited only by the permissions of the application process.

The network-based attack vector with low complexity and no authentication requirements makes this vulnerability particularly dangerous in exposed NLP services. The potential for reading sensitive configuration files, credentials, or private keys significantly elevates the risk profile of affected deployments.

Root Cause

The root cause lies in the failure of WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader to properly validate and sanitize user-supplied file path inputs. These classes do not implement adequate checks to prevent relative path traversal sequences from being processed, allowing attackers to specify paths that traverse outside the intended corpus directory structure.

The vulnerability manifests when these CorpusReader classes directly concatenate or process user-controlled path strings without first normalizing the path and verifying it remains within the expected directory boundaries. This architectural oversight enables classic directory traversal attacks.

Attack Vector

The vulnerability is exploitable via network-accessible applications that leverage NLTK's CorpusReader functionality with user-controlled input. Typical attack scenarios include:

  1. Machine Learning APIs: NLP services that allow users to specify corpus files or training data sources
  2. Chatbots: Conversational AI systems that dynamically load language models or training corpora
  3. NLP Pipelines: Data processing systems that accept file path parameters from external sources

An attacker can craft malicious file path inputs containing directory traversal sequences (e.g., ../../../../etc/passwd) to read sensitive system files. The impact includes unauthorized access to configuration files, credentials, SSH keys, and other sensitive data on the host system.

For technical details on exploitation, see the Huntr Vulnerability Bounty report.

Detection Methods for CVE-2026-0847

Indicators of Compromise

  • File access attempts to sensitive system files (e.g., /etc/passwd, /etc/shadow, .ssh/id_rsa) from NLTK-based application processes
  • Log entries showing path traversal sequences (../, ..\\) in corpus file path parameters
  • Unexpected file read operations outside designated corpus directories
  • Application error messages revealing file system paths or file contents

Detection Strategies

  • Monitor application logs for path traversal sequences in file path parameters passed to NLTK functions
  • Implement file integrity monitoring on sensitive directories to detect unauthorized access attempts
  • Deploy web application firewalls (WAF) with rules to block common path traversal patterns in request parameters
  • Use runtime application self-protection (RASP) to detect and block directory traversal attempts

Monitoring Recommendations

  • Enable verbose logging for NLTK corpus loading operations in production environments
  • Set up alerts for file access attempts to sensitive system directories from application processes
  • Monitor for anomalous file read patterns that deviate from normal corpus loading behavior
  • Implement audit logging for all file path inputs processed by NLP pipeline components

How to Mitigate CVE-2026-0847

Immediate Actions Required

  • Audit all applications using NLTK CorpusReader classes to identify those accepting user-controlled file path inputs
  • Implement strict input validation to reject file paths containing traversal sequences (../, ..\\, encoded variants)
  • Apply principle of least privilege to application processes to limit potential impact of exploitation
  • Isolate NLP processing components in sandboxed environments with restricted file system access

Patch Information

Monitor the official NLTK repository and security advisories for patches addressing this vulnerability. Until an official fix is released, implement the workarounds described below. The vulnerability was reported through the Huntr vulnerability bounty platform.

Workarounds

  • Implement application-level path validation using os.path.realpath() or pathlib.Path.resolve() to normalize paths and verify they remain within allowed directories
  • Use allowlists for permitted corpus file paths rather than accepting arbitrary user input
  • Deploy the application in a containerized environment with a read-only file system and minimal file access
  • Restrict the application process to a chroot jail or similar sandboxed environment to limit file system exposure
bash
# Configuration example
# Example: Python path validation before passing to CorpusReader
# Normalize the path and verify it stays within the allowed corpus directory
#
# import os
# CORPUS_ROOT = "/var/app/corpora"
# user_path = user_input.strip()
# full_path = os.path.realpath(os.path.join(CORPUS_ROOT, user_path))
# if not full_path.startswith(CORPUS_ROOT):
#     raise ValueError("Invalid corpus path")

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechNltk

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • Huntr Vulnerability Bounty
  • Related CVEs
  • CVE-2026-33236: Nltk Path Traversal Vulnerability

  • CVE-2026-0846: NLTK Path Traversal Vulnerability

  • CVE-2026-33231: NLTK WordNet Browser DoS Vulnerability

  • CVE-2026-33230: NLTK WordNet Browser XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English