/

CVE-2026-135789

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-135789

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 remotely triggerable OS command injection vulnerability affects Bluetooth-related operations in the D-Link R95 DHMAPI SOAP handler. If the vulnerable handler passes attacker-influenced inner_xml data to an operating-system command without safe handling, an attacker may execute commands on the device.

Affected context

The issue is reported in /bin/ssi in the DHMAPI SOAP handler of D-Link R95 101B06. It concerns Bluetooth adapter, device-list, scan, pairing, and unpairing operations that process the inner_xml argument. Risk depends on whether the affected SOAP interface is reachable and how it handles requests in the deployed environment.

Exploit preconditions

  • Attack surface: DHMAPI SOAP handler reachable over a network
  • Required access: Ability to send requests to the affected handler; authentication requirements are not established by the available description
  • Trigger point: Processing of inner_xml by one of the reported Bluetooth-related functions
  • Why exploitation is possible: Attacker-controlled input may reach an operating-system command context without adequate separation or validation

Why this happens

The underlying bug is command injection: data supplied through inner_xml is handled in a way that allows it to influence an operating-system command. This aligns with CWE-78: Improper Neutralization of Special Elements used in an OS Command. The related CWE-77 describes the broader class of command-injection weaknesses. The insecure pattern is building or invoking commands with untrusted input rather than using safe APIs and strict argument boundaries.

Potential impact

  • An attacker could execute commands with the privileges of the affected service
  • Device settings or Bluetooth-related behavior may be altered
  • Sensitive information accessible to the service may be exposed
  • The device could be disrupted or used as a foothold for further activity, depending on its configuration and network position

General mitigation guidance

Defensive approaches focus on preventing untrusted request data from becoming executable command syntax:

  • Prefer dedicated APIs over shell or command-string construction
  • Pass arguments through APIs that preserve argument boundaries, and avoid invoking a shell where possible
  • Apply strict allowlists and schema validation to request fields, including inner_xml
  • Limit the service's operating-system privileges and access to sensitive resources
  • Restrict network access to the SOAP interface to trusted systems and minimize its exposure

How teams detect issues like this

Review command execution paths in the SOAP handler and trace whether request-derived values can reach them. Static analysis can flag shell invocation, command-string construction, and unsafe concatenation involving request data. Code reviews can check for strict input schemas, safe argument handling, and least-privilege execution. Network and application logs may help identify unusual requests to the affected Bluetooth operations; policy checks can prohibit shell-based execution in request-processing code.

Sources

SourceLink
github.comgithub.com/nenghun/IoT/blob/main/D-link%20R95/rce.md
vuldb.comvuldb.com/cve/CVE-2026-135789
vuldb.comvuldb.com/submit/1055810
vuldb.comvuldb.com/vuln/442752
vuldb.comvuldb.com/vuln/442752/cti
dlink.comdlink.com/

Frequently asked

questions

The vulnerability description says the attack can be initiated remotely. Practical exposure depends on whether the affected SOAP handler is reachable.

The available details do not establish authentication requirements. Access to the affected handler is the key prerequisite; deployment controls may limit who can reach it.

Avoid passing request-derived data through shell command strings. Use dedicated APIs or safe argument-passing methods, with strict validation and least-privilege execution.

Treat request data as untrusted, enforce schemas and allowlists, review command execution paths, and restrict access to management interfaces.

Find out what's already
exploitable in your codebase.