Remote Command Injection in GL.iNet GL-MT3000 Firmware
A command injection vulnerability in the Logread Lua RPC plugin of GL.iNet GL-MT3000 firmware versions 4.4.5 and earlier allows authenticated remote attackers to execute arbitrary system commands via the module argument.
What's new
- l2 merged source coverage: Command Injection in GL.iNet GL-MT3000 Firmware Aug 3, 14:03 via nvd
A critical security vulnerability (CVE-2026-18598) exists in the GL.iNet GL-MT3000 wireless router, affecting firmware versions up to 4.4.5. The vulnerability is located within the Logread Lua RPC plugin, specifically in the logread.get_system_log function handled by the /usr/lib/oui-httpd/rpc/logread file. An authenticated remote attacker can manipulate the module argument to inject and execute arbitrary system commands on the underlying host operating system. This vulnerability stems from improper neutralization of special elements used in command execution (CWE-77). Public exploit code for this flaw is available, significantly lowering the barrier for exploitation. Given the network-facing nature of these devices, organizations should prioritize updating to a patched firmware version or restricting access to the management RPC interface.
Attack Chain
- Attacker performs network reconnaissance to identify reachable GL.iNet management interfaces.
- Attacker obtains valid low-privileged credentials for the GL-MT3000 web management portal.
- Attacker accesses the OUI-based RPC service endpoint used by the Logread Lua RPC plugin.
- Attacker crafts a malicious HTTP request containing a payload injected into the
moduleargument of thelogread.get_system_logfunction. - The
oui-httpdservice processes the request and passes the taintedmoduleargument to the system shell. - The system shell executes the attacker-supplied commands with the privileges of the web service process.
- Attacker achieves remote code execution for persistence, further system exploitation, or network traversal.
Impact
Successful exploitation allows unauthenticated (if PR is bypassed) or low-privileged remote attackers to gain full control over the router. This can lead to complete compromise of the network traffic passing through the device, unauthorized exfiltration of sensitive information, or the potential for lateral movement into the internal network protected by the router.
Recommendation
- Update GL-MT3000 firmware to version 4.4.6 or later immediately to patch CVE-2026-18598.
- Disable remote access to the web management interface on all internet-facing GL.iNet devices.
- Implement strictly limited access control lists (ACLs) for the device management interface.
- Monitor network logs for unusual HTTP POST requests to
/rpc/logreador similar paths containing shell metacharacters such as semicolon, pipe, or backticks in query parameters.
Immediate actions
Patch firmware on all GL-MT3000 devices to version > 4.4.5
Mitigations
Disable external access to management interface
CVE-2026-18598
Detection coverage 1
Detects CVE-2026-18598 Exploitation - Remote Command Injection
highDetects exploitation attempts against the Logread Lua RPC plugin by searching for shell metacharacters within the module parameter of HTTP requests.
Detection queries are available on the platform. Get full rules →