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-2024-39943

CVE-2024-39943: Rejetto HTTP File Server RCE Vulnerability

CVE-2024-39943 is a remote code execution vulnerability in Rejetto HTTP File Server that allows authenticated users with upload permissions to execute OS commands. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-39943 Overview

CVE-2024-39943 is a Command Injection vulnerability affecting rejetto HFS (HTTP File Server) version 3 before 0.52.10 on Linux, UNIX, and macOS systems. The vulnerability allows authenticated remote users with Upload permissions to execute arbitrary OS commands on the underlying server. This occurs due to the unsafe use of execSync instead of spawnSync when invoking the df command through a shell in the Node.js child_process module.

Critical Impact

Authenticated attackers with upload permissions can achieve full remote code execution on affected HFS servers running on Linux, UNIX, or macOS, potentially leading to complete system compromise.

Affected Products

  • rejetto HTTP File Server versions prior to 0.52.10
  • HFS 3.x on Linux, UNIX, and macOS platforms
  • Systems where users have been granted Upload permissions

Discovery Timeline

  • 2024-07-04 - CVE-2024-39943 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-39943

Vulnerability Analysis

This vulnerability stems from improper input handling when executing system commands within the HFS application. The core issue lies in how the application invokes the df (disk free) command to retrieve filesystem information. By using Node.js's execSync function from the child_process module, the application spawns a shell to execute the command, which introduces the possibility of command injection.

When a user with Upload permissions interacts with the application in a way that triggers the df command, specially crafted input can be injected to execute arbitrary OS commands. The execSync function passes the entire command string to a system shell for interpretation, meaning shell metacharacters and command separators can be leveraged to chain additional commands.

Root Cause

The root cause is the use of execSync instead of spawnSync in the Node.js child_process module. The execSync function invokes a shell to parse and execute the command string, making it susceptible to shell injection attacks. In contrast, spawnSync directly executes the specified program without involving a shell, which prevents command injection through shell metacharacters.

The vulnerable code path executes the df command to determine disk space information. Because user-controllable input can influence the command execution context, an attacker with upload capabilities can inject malicious commands that the shell will interpret and execute.

Attack Vector

The attack requires network access and valid authentication credentials with Upload permissions on the HFS server. An authenticated attacker can craft malicious requests that inject OS commands into the vulnerable df command execution path. Since the vulnerability affects Linux, UNIX, and macOS systems, attackers can leverage platform-specific shell syntax to:

  • Execute arbitrary system commands with the privileges of the HFS process
  • Read, modify, or delete files on the server
  • Establish reverse shells for persistent access
  • Pivot to other systems on the network
  • Exfiltrate sensitive data stored on the file server

The vulnerability does not require user interaction beyond the initial authentication, and the exploitation complexity is low once valid credentials with the required permissions are obtained.

Detection Methods for CVE-2024-39943

Indicators of Compromise

  • Unusual shell command execution originating from the HFS Node.js process
  • Unexpected child processes spawned by the HFS application
  • Anomalous network connections initiated by the HFS server process
  • Modified system files or unauthorized file access patterns
  • Evidence of command chaining characters (;, |, &&, backticks) in application logs

Detection Strategies

  • Monitor process trees for unexpected command execution originating from Node.js processes running HFS
  • Implement file integrity monitoring on critical system directories and HFS installation paths
  • Deploy network intrusion detection rules to identify command injection payloads in HTTP requests
  • Review authentication logs for unusual upload activity patterns from specific user accounts

Monitoring Recommendations

  • Enable detailed logging on the HFS application and correlate with system process logs
  • Monitor for outbound connections from the HFS server to unexpected external IP addresses
  • Implement alerting on new process creation events associated with the HFS process
  • Audit user accounts with Upload permissions and review their activity regularly

How to Mitigate CVE-2024-39943

Immediate Actions Required

  • Upgrade rejetto HFS to version 0.52.10 or later immediately
  • Audit all user accounts with Upload permissions and revoke access where not strictly necessary
  • Review application and system logs for evidence of exploitation
  • Temporarily disable HFS or restrict network access if immediate patching is not possible
  • Implement network segmentation to limit the blast radius of potential compromise

Patch Information

The vulnerability has been addressed in HFS version 0.52.10. The fix replaces the vulnerable execSync call with spawnSync, which executes the df command directly without invoking a shell, thereby eliminating the command injection vector.

Patch details are available in the GitHub commit, and the complete changes between versions can be reviewed in the version comparison on GitHub.

Workarounds

  • Restrict Upload permissions to only trusted and necessary user accounts
  • Place HFS behind a reverse proxy with Web Application Firewall (WAF) capabilities to filter malicious requests
  • Limit network access to the HFS server using firewall rules or network ACLs
  • Run HFS with minimal privileges in a containerized or sandboxed environment
  • Monitor and alert on any command execution anomalies from the HFS process
bash
# Example: Restrict HFS network access using iptables
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRejetto Http File Server

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability78.34%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78

  • CWE-284
  • Technical References
  • Rejetto Wiki Upload Guide
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Version Comparison
  • Related CVEs
  • CVE-2024-23692: Rejetto HTTP File Server RCE 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