CVE-2021-47871
Published: 21 January 2026
Summary
CVE-2021-47871 is a high-severity External Control of File Name or Path (CWE-73) vulnerability in Hestiacp (inferred from references). Its CVSS base score is 8.6 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 33.6th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).
Deeper analysis
CVE-2021-47871 is an arbitrary file write vulnerability in Hestia Control Panel version 1.3.2. The issue resides in the API endpoint at index.php, where the v-make-tmp-file command enables writing files to arbitrary locations on the server, such as SSH keys or other content to specific file paths. It is rated with a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and maps to CWE-73 (External Control of File Name or Path). The vulnerability was published on 2026-01-21.
Authenticated attackers with low privileges can exploit this vulnerability remotely over the network with low attack complexity and no user interaction required. Successful exploitation allows writing arbitrary files to sensitive locations, potentially enabling privilege escalation, persistent access via SSH keys, or further compromise of the hosting server.
Mitigation details and patches are referenced in advisories from the Hestia Control Panel GitHub repository (https://github.com/hestiacp/hestiacp), official website (https://hestiacp.com/), an Exploit-DB proof-of-concept (https://www.exploit-db.com/exploits/49667), and a Vulncheck advisory (https://www.vulncheck.com/advisories/hestia-control-panel-arbitrary-file-write). Security practitioners should consult these sources for updates and remediation steps.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-3620
Vulnerability details
Hestia Control Panel 1.3.2 contains an arbitrary file write vulnerability that allows authenticated attackers to write files to arbitrary locations using the API index.php endpoint. Attackers can exploit the v-make-tmp-file command to write SSH keys or other content to specific…
more
file paths on the server.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Arbitrary file write directly enables placement of SSH authorized_keys for persistence (T1098.004) and is commonly leveraged for local privilege escalation (T1068) on the host.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly mitigates arbitrary file writes by requiring validation of file path inputs to the v-make-tmp-file API command.
Addresses the vulnerability through timely flaw remediation by applying patches that fix the improper file handling in Hestia Control Panel.
Limits damage from low-privilege authenticated attackers by enforcing least privilege on accounts accessing the API endpoint.