← Vulnerability feed

Vulnerability record · CVE-2019-9859 · published 10 March 2020

CVE-2019-9859: Vestacp vesta control panel os command injection vulnerability

Vestacp · Vesta Control Panel

Vesta Control Panel (VestaCP) 0.9.7 through 0.9.8-23 is vulnerable to an authenticated command execution that can result in remote root access on the server. The platform works with PHP as the frontend language and uses shell scripts to execute system actions. PHP executes shell script through the dangerous command exec. This function can be dangerous if arguments passed to it are not filtered. Every user input in VestaCP that is used as an argument is filtered with the escapeshellarg function. This function comes from the PHP library directly and its description is as follows: "escapeshellarg() adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument." It means that if you give Username, it will have 'Username' as a replacement. This works well and protects users from exploiting this potentially dangerous exec function. Unfortunately, VestaCP uses this escapeshellarg function incorrectly in several places.

8.8 CVSS 3.1 High EPSS 3.0% · top 13.1% CWE-78 · OS command injection
8.8CVSS 3.1 base score, v2 9.0
3.0%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Vesta Control Panel (VestaCP) 0.9.7 through 0.9.8-23 is vulnerable to an authenticated command execution that can result in remote root access on the server. The platform works with PHP as the frontend language and uses shell scripts to execute system actions. PHP executes shell script through the dangerous command exec. This function can be dangerous if arguments passed to it are not filtered. Every user input in VestaCP that is used as an argument is filtered with the escapeshellarg function. This function comes from the PHP library directly and its description is as follows: "escapeshellarg() adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument." It means that if you give Username, it will have 'Username' as a replacement. This works well and protects users from exploiting this potentially dangerous exec function. Unfortunately, VestaCP uses this escapeshellarg function incorrectly in several places.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://ssd-disclosure.com/?p=3926 ExploitThird Party Advisory
https://ssd-disclosure.com/?p=3926 ExploitThird Party Advisory

Track CVE-2019-9859 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-43693Vestacp vesta control panel vulnerabilityvesta 0.9.8-24 is affected by a file inclusion vulnerability in file web/add/user/index.php.EPSS 1.2%9.8CVE-2018-1000884Vestacp vesta control panel observable discrepancy vulnerabilityVesta CP version Prior to commit f6f6f9cfbbf2979e301956d1c6ab5c44386822c0 -- any release prior to 0.9.8-18 contains a CWE-208 / Information Exposure …EPSS 1.3%8.8CVE-2021-28379Myvestacp myvesta unrestricted file upload vulnerabilityweb/upload/UploadHandler.php in Vesta Control Panel (aka VestaCP) through 0.9.8-27 and myVesta through 0.9.8-26-39 allows uploads from a different or…EPSS 6.0%8.8CVE-2020-10786Vestacp vesta control panel incorrect authorization vulnerabilityA remote command execution in Vesta Control Panel through 0.9.8-26 allows any authenticated user to execute arbitrary commands on the system via cron…EPSS 4.8%8.8CVE-2020-10787Vestacp vesta control panel vulnerabilityAn elevation of privilege in Vesta Control Panel through 0.9.8-26 allows an attacker to gain root system access from the admin account via v-change-u…EPSS 2.5%8.8CVE-2020-10808VestaCP backup listing endpoint OS command injectionVesta Control Panel through 0.9.8-26 passes filenames from the schedule/backup Backup Listing endpoint into a shell command without sanitization, all…EPSS 78%analysed7.2CVE-2021-46850Vestacp control panel argument injection vulnerabilitymyVesta Control Panel before 0.9.8-26-43 and Vesta Control Panel before 0.9.8-26 are vulnerable to command injection. An authenticated and remote adm…EPSS 5.4%7.2CVE-2021-30462Vestacp vesta control panel missing authentication for critical function vulnerabilityVestaCP through 0.9.8-24 allows the admin user to escalate privileges to root because the Sudo configuration does not require a password to run /usr/…EPSS 1.8%

Source: NIST National Vulnerability Database (record CVE-2019-9859), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.