CVE-2019-9859: OS Command Injection

Published Mar 10, 2020
·
Updated

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.

Affected Software

1 affected component
VestaCP Vesta Control Panel>=0.9.7-0<=0.9.8-23

Event History

Mar 10, 2020
CVE Published
via MITRE·12:34 PM
Data Sourced
via MITRE·12:34 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability CVE-2019-9859 in Vesta Control Panel?

The vulnerability CVE-2019-9859 in Vesta Control Panel is an authenticated command execution that can result in remote root access on the server.

2

What is the severity of CVE-2019-9859?

The severity of CVE-2019-9859 is critical with a CVSS score of 8.8.

3

How does the vulnerability CVE-2019-9859 in Vesta Control Panel work?

The vulnerability CVE-2019-9859 in Vesta Control Panel allows an attacker with authenticated access to execute commands on the server, potentially gaining remote root access.

4

How can I fix the vulnerability CVE-2019-9859 in Vesta Control Panel?

To fix the vulnerability CVE-2019-9859 in Vesta Control Panel, it is recommended to update to a version higher than 0.9.8-23.

5

Are there any references for CVE-2019-9859 in Vesta Control Panel?

Yes, you can find more information about CVE-2019-9859 in Vesta Control Panel at the following link: [https://ssd-disclosure.com/?p=3926](https://ssd-disclosure.com/?p=3926).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203