/

CVE-2026-19983

Severity:

HIGH RISK

(8.3)

OS Command Injection (CWE-78) in GL.iNet NAS Service

CVE-2026-19983

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Code Execution

Severity:

HIGH RISK

(8.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A high-severity operating system command injection vulnerability affects the NAS Command Service in certain GL.iNet router products. An attacker who can reach the vulnerable service remotely may influence processing in a way that causes commands to execute with the service's privileges.

Affected context

The issue is associated with the NAS Command Service and processing performed by /usr/bin/gl_nas_sys in affected GL.iNet A1300, AX1800, AXT1800, MT2500, MT3000, MT6000, X3000, and XE3000 devices running affected 4.8.x software. Risk depends on whether the service is reachable by an attacker and whether externally influenced input reaches the command-processing path.

Exploit preconditions

  • Attack surface: The NAS Command Service exposed through a network-accessible device interface
  • Required access: Network reachability to the affected service; authentication requirements depend on device configuration and service controls
  • Trigger point: Processing handled by /usr/bin/gl_nas_sys
  • Why exploitation is possible: Attacker-influenced input can reach an operating-system command execution path without sufficient separation between data and command interpretation

Why this happens

The underlying bug is an OS command injection condition in which attacker-influenced data is incorporated into a system command or command interpreter context. When input is not strictly separated from executable command structure, shell metacharacters or other control syntax may alter intended execution. This maps primarily to CWE-78, Improper Neutralization of Special Elements used in an OS Command, and is also related to CWE-77, Improper Neutralization of Special Elements in Command.

Potential impact

  • An attacker may execute operating-system commands with the privileges of the NAS service
  • The device could be compromised or its configuration altered
  • Sensitive files, credentials, or network data could be exposed
  • The attacker could disrupt storage or networking functions
  • A compromised router may enable further access to connected systems

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from application-controlled operations and reducing the trust placed in network input. Secure-by-default patterns include using structured library or operating-system APIs instead of shell commands, passing arguments as separate values, applying strict allowlists and type validation, and rejecting unexpected input before processing. Service exposure can be reduced through network segmentation and access controls, while least-privilege service accounts, restricted filesystem permissions, and constrained execution environments can limit consequences if command injection is reached.

How teams detect issues like this

  • Use static analysis rules to identify shell execution APIs, command interpreters, and string concatenation involving request-derived values
  • Review code paths around /usr/bin/gl_nas_sys and NAS command handlers for unsafe command construction
  • Search logs and telemetry for unusual NAS service requests, unexpected command failures, or anomalous process creation
  • Apply network policies that limit which interfaces and hosts can reach administrative or NAS services
  • Add CI security checks that flag dynamic shell invocation and require documented validation for command-related code

Sources

SourceLink
github.comgithub.com/gl-inet/CVE-issues/blob/main/4.0.0/NAS%20Host-header%20bypass%20to%20unauthenticated%20root%20RCE.md
vuldb.comvuldb.com/cve/CVE-2026-19983
vuldb.comvuldb.com/submit/873919
vuldb.comvuldb.com/vuln/391165
vuldb.comvuldb.com/vuln/391165/cti

Frequently asked

questions

The description indicates that the attack may be launched remotely. Practical

exploitability depends on network reachability, authentication controls, and

the device's service exposure.

The attacker generally needs network access to the NAS Command Service. Whether

authentication or an existing session is required depends on the deployment

and its access-control configuration.

The safest pattern is to eliminate shell-based command construction, use

structured APIs with fixed operations and separate arguments, and enforce

strict allowlist validation before processing input.

Reduce service exposure, apply least privilege, review command-execution paths,

use automated static analysis for injection patterns, and include adversarial

input testing in the development and release process.

Find out what's already
exploitable in your codebase.