Summary
CVE-2026-18686 is a pre-authentication command injection vulnerability in the nas-web RPC wrapper of GL.iNet GL-MT3000 (Beryl AX) routers. An unauthenticated, network-based attacker can inject shell commands that execute as root, leading to remote code execution and full device compromise. The issue is rated critical (CVSS v4.0 9.3).
Technical details
- Root cause: A two-stage (second-order) injection flaw in the
nas-webRPC interface exposed at/cgi-bin/glc. Thenas-web.add_usermethod writes the suppliedpasswordvalue into thenas_usertable of/etc/config/gl_nas/file_share.dbwithout sanitization or shell escaping. - Trigger conditions: A subsequent call to
nas-web.add_sharewithproto=sambaand the previously created user in theusers[]array retrieves the stored password and passes it into a shell command (smbpasswd) via the backend servicegl_nas_sys, executing it without escaping. - Attack vector: Network, unauthenticated — both
nas-web.add_userandnas-web.add_shareare reachable without credentials and require no user interaction. - Impact: Blind command execution with root privileges, enabling full compromise of confidentiality, integrity, and availability. Because the payload is stored, exploitation can be staged over time.
Affected software
- GL.iNet GL-MT3000 (Beryl AX) firmware versions 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, and 4.4.5.
Severity
- CVSS v4.0 base score: 9.3 (Critical) — Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1 base score: 9.8 (Critical) — Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to a firmware release later than 4.4.5 once available from GL.iNet, and monitor the vendor’s security update channel for the fixed build.
- If no patch: Do not expose the router’s web/administration and NAS interfaces to the internet. Restrict access to
/cgi-bin/glcto trusted management networks, disable the Samba/NAS file-sharing feature if not required, and place the device behind a firewall that blocks inbound access to management and NAS ports.
How IONIX identifies potentially affected assets
IONIX matches the following signals against data already collected when it crawled the asset; identifying the technology sends no request beyond that crawl.
- Page title:
GL.iNet,GL-MT3000,Beryl AX,GL.iNet Admin Panel

