/

CVE-2026-135788

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-78) in D-Link DIR-X1860 anweb

CVE-2026-135788

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Command Execution

Severity:

CRITICAL RISK

(9.9)

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 remotely reachable function in the D-Link DIR-X1860's /usr/sbin/anweb may allow operating-system command injection. If attacker-controlled input is processed in a way that reaches command execution without adequate safeguards, an attacker could execute commands on the device.

Affected context

The reported weakness affects D-Link DIR-X1860 firmware 4.5.2 and is associated with an unknown function in /usr/sbin/anweb. The report states that the attack can be launched remotely, but does not specify the affected interface, whether authentication is required, or the exact input handled by the vulnerable function.

Exploit preconditions

  • Attack surface: The affected anweb functionality must be reachable over a network.
  • Required access: The report does not establish whether authentication or other access is required.
  • Trigger point: Attacker-controlled input must reach the vulnerable functionality.
  • Why exploitation may be possible: Input may be incorporated into an operating-system command without adequate separation or validation.

Why this happens

OS command injection occurs when an application constructs or invokes an operating-system command using input that is not safely separated from command syntax. This is associated with CWE-78: Improper Neutralization of Special Elements used in an OS Command; CWE-77 describes the broader command-injection class. The available description does not identify the specific code path or input, so the precise implementation flaw is not known.

Potential impact

  • An attacker could execute commands with the privileges of the affected process.
  • The device's configuration or operation could be altered.
  • Sensitive information accessible to the process may be exposed.
  • The device could be disrupted or used as a foothold for further activity.

General mitigation guidance

Defensive approaches generally focus on avoiding shell-based command construction and reducing the trust placed in external input.

  • Prefer APIs that pass arguments directly to a process without invoking a command shell.
  • Where command execution is necessary, use fixed, allowlisted operations and strictly constrain individual arguments.
  • Apply input validation appropriate to the expected data type and reject unexpected values.
  • Run services with the least privileges needed and limit network access to management functions.
  • Keep device configuration and management access protected, and monitor changes to command-execution paths.

How teams detect issues like this

  • Review code for shell invocation and command construction that incorporates request or configuration data.
  • Use static analysis rules to flag unsafe command APIs and untrusted data flows into process execution.
  • Review access controls and network policies for interfaces that expose the affected functionality.
  • Monitor device logs and network telemetry for unusual requests or unexpected process activity.
  • Apply code review and security testing policies for command execution and input-handling changes.

Sources

SourceLink
github.comgithub.com/nenghun/IoT/blob/main/D-Link%20DIR%20X1860/D-Link%20DIR-X1860%204.5.2%20rce.md
vuldb.comvuldb.com/cve/CVE-2026-135788
vuldb.comvuldb.com/submit/1055809
vuldb.comvuldb.com/vuln/442751
vuldb.comvuldb.com/vuln/442751/cti
dlink.comdlink.com/

Frequently asked

questions

The report says the attack can be launched remotely. The exact interface and exposure conditions are not specified.

The available description does not say. Authentication requirements should be assessed against the device's configuration and exposed management surfaces.

Avoid building shell commands from input. Prefer direct process APIs with fixed operations and tightly constrained arguments.

Enforce least privilege, restrict network access to management functionality, and review command-execution code paths with static analysis and code review.

Find out what's already
exploitable in your codebase.