CVE-2020-8858 Command injection in MGate 5105-MB-EIP
Remote authenticated attackers can execute arbitrary code as root via improper validation of the DestIP parameter in Moxa MGate firmware.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-8858?
CVE-2020-8858 is a high-severity command injection vulnerability in Moxa MGate 5105-MB-EIP, published on 13 Feb 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Moxa MGate 5105-MB-EIP firmware version 4.1. Authentication is required to exploit this vulnerability. The specific flaw exists within the DestIP parameter within MainPing.asp. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-9552.
Weakness: CWE-78
Which versions are affected by CVE-2020-8858?
It affects 2 products.
Products include Moxa Mgate 5105-Mb-Eip-T Firmware, Moxa Mgate 5105-Mb-Eip Firmware.
How do I fix CVE-2020-8858?
No fix has been published for CVE-2020-8858 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2020-8858 being exploited?
There is no known exploitation of CVE-2020-8858 in the wild and no public exploit code.
Sources
Also known as GHSA-8qrp-hmq9-5pcx.