Vulnerability record · CVE-2018-5721 · published 17 January 2018
CVE-2018-5721: Asuswrt-merlin out-of-bounds write vulnerability
Asuswrt Merlin · Asuswrt Merlin
Stack-based buffer overflow in the ej_update_variables function in router/httpd/web.c on ASUS routers (when using software from https://github.com/RMerl/asuswrt-merlin) allows web authenticated attackers to execute code via a request that updates a setting. In ej_update_variables, the length of the variable action_script is not checked, as long as it includes a "_wan_if" substring.
Description
Stack-based buffer overflow in the ej_update_variables function in router/httpd/web.c on ASUS routers (when using software from https://github.com/RMerl/asuswrt-merlin) allows web authenticated attackers to execute code via a request that updates a setting. In ej_update_variables, the length of the variable action_script is not checked, as long as it includes a "_wan_if" substring.
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
| Link | Tags |
|---|---|
| http://www.w0lfzhang.com/2018/01/17/ASUS-router-stack-overflow-in-http-server/ | ExploitThird Party Advisory |
| http://www.w0lfzhang.com/2018/01/17/ASUS-router-stack-overflow-in-http-server/ | ExploitThird Party Advisory |
Track CVE-2018-5721 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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-5721), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.