CVE-2018-18319 Code injection in n/a
An attacker on a trusted intranet can execute arbitrary commands via eval in Merlin.PHP, though the vendor considers this intended behavior.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2018-18319?
CVE-2018-18319 is a critical code injection vulnerability in n/a, published on 15 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the Merlin.PHP component 0.6.6 for Asuswrt-Merlin devices. An attacker can execute arbitrary commands because api.php has an eval call, as demonstrated by the /6/api.php?function=command&class=remote&Cc='ls' URI. NOTE: the vendor indicates that Merlin.PHP is designed only for use on a trusted intranet network, and intentionally allows remote code execution
Weakness: CWE-94
Which versions are affected by CVE-2018-18319?
It affects 14 products.
Products include Asuswrt-Merlin Project Rt-Ac1900 Firmware, Asuswrt-Merlin Project Rt-Ac2900 Firmware, Asuswrt-Merlin Project Rt-Ac3100 Firmware, Asuswrt-Merlin Project Rt-Ac3200 Firmware, Asuswrt-Merlin Project Rt-Ac5300 Firmware, Asuswrt-Merlin Project Rt-Ac56u Firmware and 8 more.
How do I fix CVE-2018-18319?
No fix has been published for CVE-2018-18319 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-18319 being exploited?
There is no known exploitation of CVE-2018-18319 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-8334-vxcw-m5x6.