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-23939

CVE-2026-23939: Hexpm Path Traversal Vulnerability

CVE-2026-23939 is a path traversal vulnerability in hexpm's Elixir.Hexpm.Store.Local module that affects self-hosted deployments using Local Storage. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-23939 Overview

CVE-2026-23939 is a Path Traversal vulnerability affecting the hexpm package manager's local storage backend. The vulnerability exists in the Elixir.Hexpm.Store.Local module, specifically within the lib/hexpm/store/local.ex file. Multiple routines are affected including get/3, put/4, delete/2, and delete_many/2 functions.

This vulnerability allows attackers to perform Relative Path Traversal attacks against self-hosted hexpm deployments that use the Local Storage backend. Importantly, this issue does NOT affect hex.pm the service—only self-hosted deployments are at risk.

Critical Impact

Attackers can potentially read sensitive files outside the intended storage directory on self-hosted hexpm deployments using the Local Storage backend, leading to information disclosure.

Affected Products

  • hexpm (self-hosted deployments using Local Storage backend)
  • Versions from commit 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-23939 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-23939

Vulnerability Analysis

This Path Traversal vulnerability (CWE-22) resides in the local file storage implementation of hexpm. The affected module Elixir.Hexpm.Store.Local handles file operations for self-hosted hexpm instances that opt to use local filesystem storage rather than cloud-based solutions.

The vulnerability allows unauthenticated attackers to traverse directory paths and potentially access files outside the designated storage bucket directories. The network-accessible nature of the attack vector combined with no authentication requirements makes this vulnerability exploitable by remote attackers without user interaction.

The affected routines (get/3, put/4, delete/2, delete_many/2) all interact with the filesystem and were not properly validating path inputs to prevent traversal sequences.

Root Cause

The root cause is improper path handling in the local storage module. The original implementation used a variable named relative for path operations which created confusion between the bucket directory path and relative file paths. The code failed to properly constrain file operations to the intended bucket directory, allowing attackers to use path traversal sequences (such as ../) to escape the restricted directory.

The fix involves renaming the variable to bucket_dir to clearly distinguish the bucket directory path and ensuring all path operations are properly scoped within the intended directory boundaries.

Attack Vector

The attack is network-based and does not require authentication or user interaction. An attacker can craft malicious requests containing path traversal sequences to read, write, or delete files outside the intended storage bucket. This could lead to:

  1. Information Disclosure: Reading sensitive configuration files, credentials, or other data
  2. Data Manipulation: Writing malicious files to arbitrary locations
  3. Data Destruction: Deleting critical system or application files
text
   # only used during development (not safe)
 
   def list(bucket, prefix) do
-    relative = Path.join([dir(), bucket])
-    paths = Path.join(relative, "**") |> Path.wildcard()
+    bucket_dir = Path.join([dir(), bucket])
+    paths = Path.join(bucket_dir, "**") |> Path.wildcard()
 
     Enum.flat_map(paths, fn path ->
-      relative = Path.relative_to(path, relative)
+      relative = Path.relative_to(path, bucket_dir)
 
       if String.starts_with?(relative, prefix) and File.regular?(path) do
         [relative]

Source: GitHub Commit Update

Detection Methods for CVE-2026-23939

Indicators of Compromise

  • HTTP requests containing path traversal sequences (../, ..%2f, %2e%2e/) targeting hexpm storage endpoints
  • Unusual file access patterns in web server logs indicating attempts to access files outside storage directories
  • Anomalous file read, write, or delete operations in directories outside the configured hexpm storage location

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing path traversal patterns
  • Monitor web server access logs for suspicious URL patterns with encoded or unencoded directory traversal sequences
  • Deploy file integrity monitoring on sensitive directories to detect unauthorized access or modifications

Monitoring Recommendations

  • Enable verbose logging for the hexpm application to capture detailed request information
  • Set up alerts for failed file access attempts outside the expected storage bucket paths
  • Monitor system calls related to file operations from the hexpm process for anomalous behavior

How to Mitigate CVE-2026-23939

Immediate Actions Required

  • Update hexpm to the patched version (commit 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0 or later) immediately
  • Review access logs for any indication of prior exploitation attempts
  • Consider temporarily switching to cloud-based storage backends if immediate patching is not possible
  • Restrict network access to self-hosted hexpm instances to trusted networks only

Patch Information

The vulnerability has been addressed in commit 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0. The fix properly distinguishes between bucket directory paths and relative file paths by renaming variables and ensuring path operations are constrained to the intended storage directories.

For detailed patch information, refer to the GitHub Security Advisory GHSA-42mv-r64p-4869 and the GitHub commit with the fix.

Workarounds

  • Switch to cloud-based storage backends (S3, GCS) which are not affected by this vulnerability
  • Implement network-level access controls to restrict access to the hexpm instance
  • Deploy a reverse proxy with path validation rules to filter malicious requests before they reach the application
bash
# Example: Restrict hexpm access to internal network only using iptables
iptables -A INPUT -p tcp --dport 4000 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 4000 -j DROP

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechHexpm

  • SeverityMEDIUM

  • CVSS Score6.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/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 Update

  • GitHub Security Advisory GHSA-42mv-r64p-4869
  • Related CVEs
  • CVE-2026-23940: Hexpm Package Manager DoS Vulnerability

  • CVE-2026-21622: Hexpm Auth Bypass Vulnerability

  • CVE-2026-21621: Hexpm Privilege Escalation Vulnerability

  • CVE-2026-21618: hexpm/hexpm XSS 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