/

CVE-2026-93958

Severity:

CRITICAL RISK

(9.1)

OS Command Injection (CWE-78) in D-Link R95 DHMAPI

CVE-2026-93958

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Code 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 critical OS command injection vulnerability in the D-Link R95 BE9500 DHMAPI component allows commands supplied through the NTPServer argument to reach the device operating system.

Because the affected functionality is remotely accessible, an attacker may execute arbitrary commands on a vulnerable router without needing local access. Public exploit information increases the likelihood of active exploitation.

Affected context

The vulnerability occurs in the /bin/ssi file used by the DHMAPI component of D-Link R95 BE9500 firmware. It becomes risky when the remotely reachable system function accepts the NTPServer argument and incorporates its value into an operating-system command without sufficiently separating data from executable shell syntax. Exploitability may depend on network exposure and the device's request-processing controls.

Exploit preconditions

  • Attack surface: A remotely reachable DHMAPI system function on the router
  • Required access: Network access to the affected management or service interface; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the NTPServer argument by the /bin/ssi component
  • Why exploitation is possible: User-controlled input may be incorporated into an operating-system command without adequate command separation, escaping, or allowlist validation

Why this happens

The underlying flaw is an OS command injection condition. The application appears to pass externally controlled argument data into a system-command execution path without treating the value strictly as data.

This maps primarily to CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'). It is also related to CWE-77: Improper Neutralization of Special Elements used in a Command, which covers broader command construction failures. The insecure pattern is constructing shell or system commands from untrusted input instead of using fixed commands with safely separated arguments.

Potential impact

  • An attacker may execute arbitrary commands with the privileges of the affected service
  • The router could be fully compromised or persistently modified
  • Network traffic may be intercepted, redirected, or disrupted
  • Configuration data and connected-device information could be exposed
  • The device could be used to attack other systems or participate in botnet activity

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from network-controlled operations and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Replacing shell command construction with direct library or API calls where available
  • Passing arguments through execution interfaces that do not invoke a shell
  • Applying strict allowlists for valid NTP server formats and rejecting unexpected characters
  • Separating parsing, validation, and execution so validation occurs before any system operation
  • Restricting management interfaces to trusted networks and applying least-privilege service permissions
  • Using read-only or hardened runtime settings where practical
  • Monitoring exposed devices and applying vendor-provided security fixes through normal maintenance processes

How teams detect issues like this

Organizations can look for command injection risks through:

  • Static analysis rules identifying system-command APIs that receive HTTP, API, or form-derived values
  • Code review checks for string concatenation or interpolation within shell command construction
  • Testing that supplies malformed, delimiter-containing, and unexpected-format values to management parameters
  • Runtime monitoring for unusual process creation, shell invocation, outbound connections, or configuration changes from router services
  • Network policy enforcement that limits administrative interfaces and management APIs to authorized segments
  • Automated security review tools that flag tainted data flowing from request parameters into process execution functions

Sources

SourceLink
github.comgithub.com/FoundTL/D-Link-R95-BE9500
vuldb.comvuldb.com/cve/CVE-2026-93958
vuldb.comvuldb.com/submit/944149
vuldb.comvuldb.com/vuln/407917
vuldb.comvuldb.com/vuln/407917/cti
dlink.comdlink.com/

Frequently asked

questions

Yes. The reported attack path is remote because the vulnerable DHMAPI functionality processes the affected parameter over a network-accessible interface. Practical exposure depends on routing, interface configuration, and any authentication or access controls in place.

The description does not establish a universal authentication requirement. Access to the affected interface is necessary, while the exact account requirement may vary by device configuration and deployment.

Avoid passing user-controlled values through a shell. Prefer direct APIs, fixed command structures, separated arguments, and strict allowlist validation for accepted NTP server values.

Treat all management parameters as untrusted, apply taint-aware code review and static analysis, restrict administrative interfaces, use least-privilege services, and monitor for unexpected child processes or outbound activity.

Find out what's already
exploitable in your codebase.