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-2021-47871

CVE-2021-47871: Hestia Control Panel File Write Vulnerability

CVE-2021-47871 is an arbitrary file write flaw in Hestia Control Panel 1.3.2 that lets authenticated attackers write files to any location via the API endpoint. This article covers technical details, affected versions, and fixes.

Published: January 23, 2026

CVE-2021-47871 Overview

CVE-2021-47871 is an arbitrary file write vulnerability affecting Hestia Control Panel version 1.3.2. This flaw allows authenticated attackers to write files to arbitrary locations on the server by exploiting the API index.php endpoint. By leveraging the v-make-tmp-file command, attackers can write SSH keys or other malicious content to specific file paths, potentially leading to complete server compromise.

Critical Impact

Authenticated attackers can write arbitrary files to the server, enabling SSH key injection, configuration tampering, and potential remote code execution through web shells or cron jobs.

Affected Products

  • Hestia Control Panel 1.3.2
  • Hestia Control Panel versions prior to the patched release
  • Linux servers running vulnerable HestiaCP installations

Discovery Timeline

  • 2026-01-21 - CVE CVE-2021-47871 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2021-47871

Vulnerability Analysis

This vulnerability is classified under CWE-73 (External Control of File Name or Path), which occurs when software allows external input to influence file system operations without proper validation. In the context of Hestia Control Panel, the v-make-tmp-file command exposed through the API endpoint fails to properly sanitize the target file path parameter, allowing authenticated users to specify arbitrary locations on the file system.

The attack requires authentication to the HestiaCP panel, meaning an attacker must possess valid credentials. However, once authenticated, even low-privilege users may be able to exploit this vulnerability to escalate their access by writing SSH authorized_keys files or modifying system configurations.

Root Cause

The root cause of CVE-2021-47871 lies in insufficient input validation within the v-make-tmp-file command handler. The API endpoint at index.php accepts user-controlled parameters for file path specification without adequately checking for path traversal sequences or restricting writes to safe directories. This allows an attacker to escape the intended temporary file directory and write content to sensitive system locations.

Attack Vector

The attack is network-based and requires authentication to the Hestia Control Panel web interface. An attacker with valid credentials can craft a malicious API request to the index.php endpoint, specifying a target path outside the expected temporary directory. Common exploitation scenarios include:

The attacker sends a crafted POST request to the API endpoint with the v-make-tmp-file command, specifying a target path such as /root/.ssh/authorized_keys along with attacker-controlled SSH public key content. Upon successful execution, the attacker gains SSH access to the server with root privileges.

Additionally, attackers may write web shells to accessible web directories, create malicious cron jobs, or overwrite configuration files to further compromise the system. Technical details and proof-of-concept code can be found in the Exploit-DB #49667 entry.

Detection Methods for CVE-2021-47871

Indicators of Compromise

  • Unexpected modifications to /root/.ssh/authorized_keys or other user SSH key files
  • Suspicious API requests to index.php containing v-make-tmp-file with unusual file paths
  • New web shell files appearing in web-accessible directories
  • Unexplained modifications to system configuration files or cron jobs

Detection Strategies

  • Monitor HestiaCP API logs for requests containing the v-make-tmp-file command with path traversal patterns such as ../ sequences
  • Implement file integrity monitoring (FIM) on critical system files including SSH authorized_keys, cron directories, and web roots
  • Deploy web application firewall rules to detect and block API requests containing suspicious file path parameters
  • Review authentication logs for unusual access patterns that may indicate compromised credentials being used for exploitation

Monitoring Recommendations

  • Enable detailed logging for all HestiaCP API endpoint interactions
  • Configure real-time alerts for modifications to SSH configuration files and authorized_keys across all user accounts
  • Monitor for new file creation events in web-accessible directories that could indicate web shell deployment
  • Implement anomaly detection for file write operations originating from the HestiaCP application user context

How to Mitigate CVE-2021-47871

Immediate Actions Required

  • Upgrade Hestia Control Panel to the latest available version that addresses this vulnerability
  • Audit existing user accounts and revoke access for any unnecessary or suspicious accounts
  • Review SSH authorized_keys files across all system users for unauthorized entries
  • Temporarily restrict network access to the HestiaCP administrative interface to trusted IP addresses only
  • Implement additional authentication controls such as multi-factor authentication for panel access

Patch Information

Users should upgrade Hestia Control Panel to a version newer than 1.3.2 that includes fixes for this arbitrary file write vulnerability. The latest releases can be obtained from the GitHub HestiaCP Repository or the HestiaCP Official Website. Additional vulnerability details are available in the VulnCheck HestiaCP Advisory.

Workarounds

  • Implement strict IP-based access controls to limit HestiaCP panel access to trusted administrative networks only
  • Deploy a web application firewall (WAF) with rules to filter API requests containing path traversal patterns or targeting the v-make-tmp-file endpoint
  • Temporarily disable or restrict access to the vulnerable API endpoint if the upgrade cannot be performed immediately
  • Run HestiaCP under a restricted user account with limited file system write permissions to reduce the impact of exploitation
bash
# Configuration example - Restrict HestiaCP panel access by IP using iptables
# Allow access only from trusted administrative IP
iptables -A INPUT -p tcp --dport 8083 -s 192.168.1.100 -j ACCEPT
iptables -A INPUT -p tcp --dport 8083 -j DROP

# Alternative: Use nginx/apache access control
# In nginx configuration for HestiaCP:
# location / {
#     allow 192.168.1.100;
#     deny all;
# }

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechHestia Control Panel

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-73
  • Technical References
  • GitHub HestiaCP Repository

  • HestiaCP Official Website

  • Exploit-DB #49667

  • VulnCheck HestiaCP Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 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