Impact
A flaw in the FTP Protocol Handler of GL.iNet GL-MT3000 firmware version 4.4.5 allows an attacker to inject malicious commands through the media_dir parameter. The vulnerable snprintf function fails to properly escape single quotes, enabling a crafted payload that closes a quote, appends shell commands with a semicolon, and comments out the remainder of the line. This results in arbitrary shell command execution on the device, granting the attacker full control over the device’s operating system. The weakness is identified as CWE-74 and CWE-77.
Affected Systems
The vulnerability affects GL.iNet GL-MT3000 devices running firmware 4.4.5 or earlier versions that have not applied the 4.8.1 fix. The official patch in firmware 4.8.1 sanitizes the media_dir input by escaping single quotes before writing to the FTP configuration, thereby preventing command injection. All devices of the GL-MT3000 line that are still on 4.4.5 or any earlier firmware without the patch are considered vulnerable.
Risk and Exploitability
The CVSS score of 6.9 indicates a moderate risk, and no EPSS score is available, implying uncertainty about exploit prevalence. The vulnerability is not listed in the CISA KEV catalog. Attackers can trigger the flaw remotely by sending a crafted request to the FTP configuration endpoint exposed by the /cgi-bin/glc handler. Once executed, the attacker can run arbitrary shell commands, potentially compromising confidentiality, integrity, and availability of the device and any connected network services.
OpenCVE Enrichment