/

CVE-2026-121931

Severity:

CRITICAL RISK

(9.1)

OS Command Injection (CWE-78) in Linksys WRT54GL Router

CVE-2026-121931

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Command Execution

Severity:

CRITICAL RISK

(9.1)

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 command-injection vulnerability in the Linksys WRT54GL's traceroute diagnostic function may allow a remote attacker to execute operating-system commands by manipulating the traceroute_ip argument.

Public exploit information is available, and the issue affects a product that is no longer supported, increasing the risk for deployments that expose the function.

Affected context

The reported issue occurs in the Traceroute Diagnostic Function, where the apply.cgi component processes the traceroute_ip argument through a system function. Risk applies to affected Linksys WRT54GL devices running firmware 4.30.18 when the diagnostic function is reachable by an attacker. The product is no longer supported by its maintainer.

Exploit preconditions

  • Attack surface: The device's web interface and traceroute diagnostic function must be reachable remotely.
  • Required access: The description does not specify whether authentication is required; access controls and deployment configuration may affect exposure.
  • Trigger point: Processing of the traceroute_ip argument by the diagnostic function in apply.cgi.
  • Why exploitation is possible: User-controlled input is passed to a system command in a way that may allow command syntax to be interpreted.

Why this happens

The reported behavior is consistent with CWE-78: Improper Neutralization of Special Elements used in an OS Command. The underlying insecure pattern is passing externally influenced input into an operating-system command without reliably separating data from command syntax. This is also related to CWE-77: Improper Neutralization of Special Elements used in a Command.

Potential impact

  • An attacker may execute operating-system commands on the device.
  • The device could be compromised or its configuration altered.
  • Network traffic or connected systems could be exposed to additional risk.
  • The device could be used as a foothold for further activity within the network.

General mitigation guidance

Defensive approaches generally aim to avoid shell interpretation of untrusted input and reduce exposure when diagnostic features are used.

  • Prefer APIs that invoke programs with structured arguments rather than constructing shell commands.
  • Validate inputs against a narrow, expected format and reject unexpected characters or values.
  • Limit access to diagnostic interfaces and avoid exposing device administration surfaces to untrusted networks.
  • Isolate network devices and restrict their privileges and permitted network communications.
  • Where a product is unsupported, consider replacing it with a maintained alternative that receives security updates.

How teams detect issues like this

  • Review code for system or shell invocation that incorporates request parameters, especially diagnostic inputs.
  • Use static analysis to flag command execution APIs and trace whether externally controlled values reach them.
  • Review administrative access policies and network exposure for diagnostic and management interfaces.
  • Monitor device and network telemetry for unexpected command activity or anomalous outbound connections.
  • Apply policy checks that restrict shell-based command construction and require validation of external inputs.

Sources

SourceLink
github.comgithub.com/Zimo-666/WRT54GL-cves/tree/main/CVE-TBD-traceroute-ip-command-injection
vuldb.comvuldb.com/cve/CVE-2026-121931
vuldb.comvuldb.com/submit/1024099
vuldb.comvuldb.com/vuln/431043
vuldb.comvuldb.com/vuln/431043/cti
linksys.comlinksys.com/

Frequently asked

questions

The report says the attack can be launched remotely. Practical exposure depends on whether the device's web interface and traceroute function are reachable.

The available description does not specify authentication requirements. Access controls and the device's deployment configuration may affect whether an attacker can reach the vulnerable function.

Avoid passing untrusted input through a shell. Use structured process APIs and strictly validate values accepted by diagnostic functions.

Keep management interfaces restricted, reduce trust in user-controlled input, review command-execution paths with static analysis, and use maintained devices with security support.

Find out what's already
exploitable in your codebase.