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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-40024

CVE-2026-40024: Sleuth Kit Path Traversal Vulnerability

CVE-2026-40024 is a path traversal flaw in The Sleuth Kit through 4.14.0 that enables attackers to write files outside intended directories. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-40024 Overview

The Sleuth Kit through version 4.14.0 contains a path traversal vulnerability (CWE-22) in the tsk_recover tool that allows an attacker to write files to arbitrary locations outside the intended recovery directory. This vulnerability is exploited via crafted filenames or directory paths containing path traversal sequences (e.g., /../) embedded within a malicious filesystem image.

Critical Impact

An attacker can craft a malicious filesystem image with embedded path traversal sequences in filenames that, when processed by tsk_recover, writes files outside the output directory. This can potentially achieve arbitrary code execution by overwriting shell configuration files or cron entries on the target system.

Affected Products

  • The Sleuth Kit versions through 4.14.0
  • Systems using tsk_recover for forensic file recovery operations
  • Digital forensics workflows processing untrusted filesystem images

Discovery Timeline

  • 2026-04-08 - CVE CVE-2026-40024 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-40024

Vulnerability Analysis

This path traversal vulnerability exists in the tsk_recover component of The Sleuth Kit, a widely-used open-source digital forensics toolkit. The vulnerability stems from insufficient sanitization of file paths extracted from filesystem images during the recovery process. When tsk_recover processes a malicious filesystem image containing specially crafted filenames with directory traversal sequences, it fails to properly validate and sanitize these paths before writing recovered files to the output directory.

The local attack vector requires user interaction—specifically, a user must process a malicious filesystem image with the vulnerable tsk_recover tool. However, the impact is severe as successful exploitation allows unauthorized file writes with no authentication required, potentially leading to complete system compromise.

Root Cause

The root cause of CVE-2026-40024 is the absence of input validation for special path characters within filenames extracted from filesystem images. The tsk_recover tool did not filter or reject path traversal sequences such as ../ (Unix) or ..\ (Windows) embedded in filenames, allowing attackers to escape the intended output directory boundary during file recovery operations.

Attack Vector

The attack requires local access and involves the following exploitation path:

  1. An attacker crafts a malicious filesystem image (e.g., disk image, partition image) containing files with path traversal sequences embedded in their names (e.g., ../../.bashrc or ../../etc/cron.d/malicious)
  2. The victim uses tsk_recover to process the malicious image, specifying an output directory for recovered files
  3. The vulnerable tsk_recover tool fails to sanitize the malicious filenames and writes files outside the intended output directory
  4. Depending on the targeted files (shell configurations, cron entries, SSH authorized_keys), the attacker can achieve arbitrary code execution or persistent access

The security patch introduces character filtering to prevent path traversal sequences from being processed:

cpp
// special characters we do not want to have in the name when writing out. 
#ifdef TSK_WIN32
#define TSK_IS_SPL_FILE_CHAR(x) \
    (((x) == 0x3A) || ((x) == 0x5C))
#else
#define TSK_IS_SPL_FILE_CHAR(x) \
    ((x) == 0x2F) 
#endif

Source: GitHub Commit Details

Detection Methods for CVE-2026-40024

Indicators of Compromise

  • Unexpected file modifications in system configuration directories (/etc/, ~/.bashrc, ~/.profile, cron directories) following tsk_recover execution
  • File write operations from tsk_recover processes targeting directories outside the specified output path
  • Presence of filesystem images containing filenames with ../ or ..\ path traversal sequences

Detection Strategies

  • Monitor tsk_recover process file operations for writes outside designated output directories using file integrity monitoring (FIM) tools
  • Implement system call auditing to detect suspicious path traversal patterns in file operations originating from forensic tools
  • Deploy endpoint detection rules to alert on tsk_recover writing to sensitive system paths such as /etc/cron.d/, /etc/profile.d/, or user shell configuration files

Monitoring Recommendations

  • Enable audit logging for file creation and modification events in critical system directories when forensic operations are performed
  • Implement sandbox environments for processing untrusted filesystem images to contain potential exploitation attempts
  • Utilize SentinelOne's Behavioral AI to detect anomalous file write patterns from forensic utilities targeting system configuration files

How to Mitigate CVE-2026-40024

Immediate Actions Required

  • Update The Sleuth Kit to a patched version that includes the security fix (commit a3f96b3bc36a8bb1a00c297f77110d4a6e7dd31b)
  • Audit recent tsk_recover operations to identify any potential exploitation attempts or unauthorized file writes
  • Restrict execution of tsk_recover to dedicated forensic workstations with limited network access and restricted write permissions

Patch Information

The vulnerability has been addressed in a security patch available through the official Sleuth Kit repository. The fix introduces special character filtering in tools/autotools/tsk_recover.cpp to sanitize path traversal symbols from export paths during file recovery operations. Organizations should apply the patch from the GitHub commit or update to a version containing this fix.

For additional technical details, refer to the VulnCheck Security Advisory.

Workarounds

  • Process untrusted filesystem images in isolated virtual machines or containers with no access to critical system paths
  • Run tsk_recover with restricted permissions using a dedicated low-privilege user account that cannot write to sensitive directories
  • Pre-validate filesystem images by scanning for path traversal sequences in filenames before processing with tsk_recover
bash
# Run tsk_recover in a restricted directory with limited permissions
mkdir -p /tmp/tsk_recovery_sandbox
chmod 700 /tmp/tsk_recovery_sandbox
sudo -u forensic_user tsk_recover -e /path/to/image.dd /tmp/tsk_recovery_sandbox/

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechSleuth Kit

  • SeverityHIGH

  • CVSS Score8.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Details

  • Mobasi Sentinel Overview

  • VulnCheck Security Advisory
  • Related CVEs
  • CVE-2026-40026: Sleuth Kit Buffer Overflow Vulnerability

  • CVE-2026-40025: Sleuth Kit APFS Information Disclosure
Default Legacy - Prefooter | 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