Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2201+ Articles
157+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-18602: GL.iNet GL-MT3000 Remote Command Injection via VPN Hostname
CVE-2026-18602: GL.iNet GL-MT3000 Remote Command Injection via VPN Hostname

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-18602

CVE-2026-18602: GL.iNet GL-MT3000 Remote Command Injection via VPN Hostname

A critical command injection vulnerability in GL.iNet GL-MT3000 routers (firmware up to 4.4.5) allows remote attackers to execute arbitrary OS commands by manipulating the Hostname argument in the OpenVPN client configuration endpoint.

Dylan H.

Security Team

August 4, 2026
5 min read

Affected Products

  • GL.iNet GL-MT3000 firmware <= 4.4.5

Executive Summary

A critical OS command injection vulnerability (CVE-2026-18602, CVSS 9.8) has been identified in GL.iNet GL-MT3000 routers running firmware version 4.4.5 and earlier. The flaw exists in the ovpn-client.get_recommend_config function within /cgi-bin/glc, part of the router's OpenVPN client plugin (ovpn-client.so). By manipulating the Hostname argument, a remote attacker can inject arbitrary shell commands that execute on the device with elevated privileges.

GL.iNet routers are popular among home users, small businesses, and privacy-focused users deploying VPNs — this vulnerability puts all affected deployments at risk of complete device compromise.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-18602
CVSS Score9.8 (Critical)
TypeOS Command Injection
Affected Componentovpn-client.so Native Plugin, /cgi-bin/glc
Vulnerable Functionovpn-client.get_recommend_config
Vulnerable ParameterHostname argument
Attack VectorNetwork (remotely exploitable)
Privileges RequiredLow (varies by network access level)
User InteractionNone

Affected Versions

DeviceAffected FirmwareFixed Version
GL.iNet GL-MT3000All versions up to 4.4.5Check GL.iNet firmware updates

Technical Analysis

The GL-MT3000 provides an OpenVPN client interface through a CGI binary (/cgi-bin/glc). The ovpn-client.get_recommend_config function accepts a Hostname parameter intended to specify the VPN server endpoint. Due to insufficient input sanitization, the Hostname value is passed directly into a shell command or system call without proper escaping.

An attacker who can reach the router's CGI interface can inject shell metacharacters (;, |, &&, backticks) to break out of the intended command context and execute arbitrary OS commands.

Exploit Pattern:
Vulnerable endpoint: /cgi-bin/glc (via ovpn-client.get_recommend_config)
Malicious input:     Hostname = "vpn.example.com; id; cat /etc/passwd"
 
Result: Router executes:
  ovpn_client_get_config vpn.example.com
  id
  cat /etc/passwd
 
The injected commands run with the privilege level of the web server process
(typically root on consumer routers).

Why CVSS 9.8?

The near-perfect score reflects:

  • No authentication required in certain attack scenarios (or low-privilege access sufficient)
  • Network-accessible attack vector
  • No user interaction needed
  • Full system compromise possible — routers typically run commands as root

Impact Assessment

ImpactDescription
Full Device CompromiseExecute arbitrary commands as root on the router
Network Traffic InterceptionModify routing rules to MITM all traffic
VPN Credential TheftExtract saved VPN credentials and certificates
Persistent BackdoorInstall persistent access via cron or init scripts
Network PivotingUse compromised router to attack LAN-side devices
DNS HijackingRedirect DNS to attacker-controlled servers
Botnet RecruitmentEnroll device into IoT botnet (Mirai-style)

Remediation

Step 1: Check Your Firmware Version

Access the GL.iNet admin panel (typically at http://192.168.8.1) and navigate to System > Upgrade to check the current firmware version.

Step 2: Update Firmware

# Check GL.iNet's official firmware download page for GL-MT3000 updates
# https://dl.gl-inet.com/router/mt3000/
 
# Via the admin panel:
# System > Upgrade > Online Upgrade or Manual Upgrade

Monitor GL.iNet's release notes for a patched firmware addressing CVE-2026-18602.

Step 3: Restrict Administrative Interface Access

While awaiting a patch, limit access to the router's admin interface:

# Via GL.iNet admin panel:
# Security > Administration > Restrict access to LAN-only
 
# If you have SSH access, add iptables rules:
iptables -I INPUT -p tcp --dport 80 -s 192.168.8.0/24 -j ACCEPT
iptables -I INPUT -p tcp --dport 80 ! -s 192.168.8.0/24 -j DROP

Step 4: Disable OpenVPN Client Feature if Unused

If you are not using the OpenVPN client functionality, disable it:

  1. Navigate to VPN > OpenVPN Client in the admin panel
  2. Ensure no VPN profiles are active
  3. Consider disabling the VPN client plugin if your firmware version allows

Step 5: Rotate VPN Credentials

If the router has been potentially compromised:

  1. Revoke all VPN certificates associated with the device
  2. Generate new certificates and update the router post-patch
  3. Change the router admin password immediately
  4. Factory reset if compromise is suspected

Detection Indicators

IndicatorDescription
Unexpected outbound connectionsData exfiltration or C2 communication
Unknown processes running on routerBackdoor or malware installation
Modified /etc/hosts or DNS settingsDNS hijacking post-exploitation
Admin password changed unexpectedlyAttacker locking out legitimate admin
Unfamiliar SSH keys in authorized_keysPersistent access established

Check router logs via admin panel or SSH:

# View recent system logs (if SSH enabled)
ssh root@192.168.8.1
logread | tail -100

Broader GL.iNet Security Context

GL.iNet devices have faced multiple CVEs over recent years related to command injection in CGI handlers. Organizations relying on GL.iNet routers for VPN gateways or travel routers should:

  • Maintain a firmware update cadence aligned with GL.iNet's release schedule
  • Enable automatic firmware updates where supported
  • Segment the router's admin interface from untrusted networks
  • Subscribe to GL.iNet security advisories

References

  • NIST NVD — CVE-2026-18602
  • GL.iNet Firmware Downloads — GL-MT3000
  • GL.iNet Release Notes

Related Reading

  • CVE-2026-39932: Critical RCE in OpenEMR
  • CVE-2026-41452: Krayin CRM Admin Account Takeover
#CVE-2026-18602#GL.iNet#Router#IoT#Command Injection#OpenVPN#Vulnerability

Related Articles

CVE-2026-7037: Unauthenticated OS Command Injection in Totolink A8000RU

A critical CVSS 9.8 OS command injection vulnerability in the Totolink A8000RU router allows unauthenticated remote attackers to execute arbitrary...

5 min read

CVE-2025-29635: D-Link DIR-823X Command Injection

A command injection flaw in end-of-life D-Link DIR-823X routers allows authenticated remote attackers to execute arbitrary OS commands. CISA has added...

3 min read

CVE-2026-6112: Totolink A7100RU OS Command Injection via setRadvdCfg

A critical OS command injection vulnerability (CVSS 9.8) in Totolink A7100RU firmware allows unauthenticated remote attackers to execute arbitrary...

3 min read
Back to all Security Alerts