Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-23942

CVE-2026-23942: Erlang OTP Path Traversal Vulnerability

CVE-2026-23942 is a path traversal flaw in Erlang OTP's ssh_sftpd module that allows authenticated users to access sibling directories. This article covers technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-23942 Overview

A path traversal vulnerability exists in Erlang OTP's ssh_sftpd module that allows authenticated users to escape the configured SFTP root directory and access sibling directories. The flaw stems from improper path validation in the ssh_sftpd:is_within_root/2 routine, which uses string prefix matching via lists:prefix/2 rather than proper path component validation when determining if a requested path falls within the configured root directory.

Critical Impact

Authenticated SFTP users can bypass directory isolation controls to read and write files in sibling directories that share a common name prefix with the configured root directory, potentially exposing sensitive data or enabling unauthorized modifications.

Affected Products

  • Erlang OTP versions 17.0 through 28.4.1
  • Erlang OTP versions through 27.3.4.9
  • Erlang OTP versions through 26.2.5.18
  • SSH module versions 3.0.1 through 5.5.1, 5.2.11.6, and 5.1.4.14

Discovery Timeline

  • 2026-03-13 - CVE-2026-23942 published to NVD
  • 2026-03-16 - Last updated in NVD database

Technical Details for CVE-2026-23942

Vulnerability Analysis

This path traversal vulnerability (CWE-22) affects the SFTP server component within Erlang OTP. The root cause lies in the ssh_sftpd:is_within_root/2 function located in lib/ssh/src/ssh_sftpd.erl, which incorrectly validates whether a user-supplied path resides within the configured root directory.

The vulnerable code uses lists:prefix/2 for string-based prefix matching rather than performing proper path component boundary validation. This approach fails to account for directory names that share a common prefix. For instance, if an administrator configures the SFTP root as /home/user1, the flawed validation logic would incorrectly consider paths like /home/user10, /home/user1_backup, or /home/user1-data as being within the allowed root directory.

An authenticated attacker can leverage this vulnerability to traverse into sibling directories, potentially accessing sensitive configuration files, user data, or application secrets stored in adjacent directory structures.

Root Cause

The vulnerability originates from the use of simple string prefix matching (lists:prefix/2) in the path validation logic. This approach only checks if the requested path string begins with the root directory string, without verifying that the path actually represents a subdirectory within the root hierarchy. Proper validation requires checking path component boundaries (e.g., verifying that after the root path, the next character is either a path separator or end of string).

Attack Vector

The attack requires authenticated access to the vulnerable SFTP server. Once authenticated, an attacker can craft SFTP requests targeting directories with names that share a prefix with the configured root directory. The exploitation is straightforward:

  1. Attacker authenticates to the SFTP server
  2. If the configured root is /home/user1, attacker requests access to /home/user10 or /home/user1_backup
  3. The flawed prefix check passes since /home/user1 is a prefix of both paths
  4. Attacker gains unauthorized access to read/write files in sibling directories
text
// Vulnerable path validation pattern (pre-patch)
// The server uses string prefix matching that fails to validate path boundaries
// Root: /home/user1
// Attacker path: /home/user10
// lists:prefix("/home/user1", "/home/user10") returns true (INCORRECT)

Source: GitHub Security Advisory

Detection Methods for CVE-2026-23942

Indicators of Compromise

  • SFTP access logs showing requests to paths that share a common prefix with the configured root but are outside the intended directory tree
  • Unexpected file access patterns indicating users accessing sibling directories (e.g., /home/user1 configured but /home/user10 accessed)
  • Audit logs revealing file operations in directories that should be inaccessible based on SFTP configuration

Detection Strategies

  • Monitor SFTP server logs for path access patterns that indicate boundary escape attempts, particularly paths matching the pattern <root>* where the character after root is not a path separator
  • Implement file integrity monitoring on directories adjacent to configured SFTP roots
  • Review authentication logs correlating successful SFTP logins with suspicious file access in sibling directories
  • Deploy network monitoring to detect abnormal SFTP traffic patterns indicative of directory enumeration

Monitoring Recommendations

  • Enable verbose logging for the Erlang SSH daemon to capture all SFTP path requests
  • Configure alerts for file access operations in directories that share naming conventions with SFTP roots
  • Implement real-time log analysis to detect path traversal attempt patterns
  • Monitor system file access logs (auditd on Linux) for cross-directory access by SFTP daemon processes

How to Mitigate CVE-2026-23942

Immediate Actions Required

  • Upgrade to patched Erlang OTP versions: 28.4.1, 27.3.4.9, or 26.2.5.18 (corresponding to SSH versions 5.5.1, 5.2.11.6, or 5.1.4.14)
  • Review SFTP server configurations to identify deployments using the root option
  • Audit directory naming conventions to identify roots with potentially exploitable sibling directories
  • Consider implementing OS-level isolation (chroot, containers, SELinux/AppArmor) as defense-in-depth while patching is underway

Patch Information

The Erlang/OTP team has released security patches addressing this vulnerability. The fix implements proper path component boundary validation rather than simple string prefix matching. Updated versions include OTP 28.4.1, OTP 27.3.4.9, and OTP 26.2.5.18.

Relevant commit references:

  • Commit for OTP 28
  • Commit for OTP 26
  • Commit for OTP 27

For additional security guidance, refer to the GitHub Security Advisory.

Workarounds

  • Implement OS-level chroot jails to provide filesystem isolation independent of the application-level root option
  • Deploy SFTP services within containers with restricted filesystem access to limit exposure
  • Use mandatory access control systems (SELinux, AppArmor) to enforce strict file access policies for the SFTP daemon process
  • Review and rename directories to ensure SFTP root directory names do not share common prefixes with sensitive sibling directories
  • Consider running separate SFTP daemon instances on different ports for different user groups to reduce lateral movement risk
bash
# Defense-in-depth configuration example
# Combine application-level root with OS-level isolation

# Example: Using systemd service with chroot for Erlang SFTP
# /etc/systemd/system/erlang-sftp.service
# [Service]
# RootDirectory=/srv/sftp-jail
# PrivateTmp=true
# ProtectSystem=strict
# NoNewPrivileges=true

# Application configuration with root option
# ssh:daemon(Port, [{subsystems, [ssh_sftpd:subsystem_spec([{root, "/home/sftpuser"}])]}, ...]).

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechErlang

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/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
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Change

  • GitHub Commit Change

  • GitHub Commit Change

  • GitHub Security Advisory

  • Erlang Version Documentation
  • Related CVEs
  • CVE-2025-4748: Erlang OTP Path Traversal Vulnerability

  • CVE-2026-23943: Erlang OTP SSH Compression Bomb DoS Flaw

  • CVE-2025-32433: Erlang/OTP SSH Server RCE Vulnerability

  • CVE-2025-26618: Erlang/OTP SSH SFTP DoS Vulnerability
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