Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2277+ Articles
157+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-71948: D-Link DWR-M961 Command Injection via formDebugDiagnosticRun
CVE-2026-71948: D-Link DWR-M961 Command Injection via formDebugDiagnosticRun

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-71948

CVE-2026-71948: D-Link DWR-M961 Command Injection via formDebugDiagnosticRun

A critical unauthenticated command injection vulnerability in D-Link DWR-M961 routers allows remote attackers to execute arbitrary commands via the host field in the formDebugDiagnosticRun interface. CVSS 9.8.

Dylan H.

Security Team

August 9, 2026
5 min read

Affected Products

  • D-Link DWR-M961 (Hardware C1) — Firmware < 1.1.5_C1_202607071108

Executive Summary

A critical command injection vulnerability (CVE-2026-71948) has been disclosed in D-Link DWR-M961 mobile Wi-Fi routers running hardware version C1 with firmware prior to 1.1.5_C1_202607071108. The flaw resides in the /boafrm/formDebugDiagnosticRun web interface, where a remote unauthenticated attacker can inject arbitrary OS commands through the host parameter.

CVSS Score: 9.8 (Critical)

This is one of four command injection CVEs (CVE-2026-71948 through CVE-2026-71951) affecting the same device across different web management interfaces, all with identical CVSS severity. Firmware update to version 1.1.5_C1_202607071108 or later is the only remediation.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-71948
CVSS Score9.8 (Critical)
TypeCommand Injection (CWE-77)
Vulnerable Interface/boafrm/formDebugDiagnosticRun
Vulnerable Parameterhost
Attack VectorNetwork
Privileges RequiredNone
User InteractionNone
Fixed Firmware1.1.5_C1_202607071108

Affected Devices

DeviceHardware VersionAffected FirmwareFixed Version
D-Link DWR-M961C1< 1.1.5_C1_2026070711081.1.5_C1_202607071108

Technical Details

The /boafrm/formDebugDiagnosticRun endpoint is part of the router's diagnostic toolset, typically used for ping/traceroute-style debug operations. The web management service fails to sanitize the host field before passing it to a system shell call, enabling classic command injection via shell metacharacters (;, &&, |, `).

Exploit Chain

1. Attacker identifies D-Link DWR-M961 C1 router exposed to network
2. Attacker sends crafted POST request to /boafrm/formDebugDiagnosticRun
3. Payload in "host" field contains injected OS commands
4. Router's web service passes unsanitized input to system() or popen()
5. Commands execute as root (typical embedded router web daemon)
6. Attacker achieves full device control — credential theft, backdoor, pivot

Example Payload Structure

POST /boafrm/formDebugDiagnosticRun HTTP/1.1
Host: <router-ip>
Content-Type: application/x-www-form-urlencoded
 
host=8.8.8.8;id;whoami&action=ping

Impact Scope

ImpactDescription
Remote Code ExecutionExecute arbitrary OS commands as root
Credential TheftExtract Wi-Fi credentials, admin passwords from NVRAM
Persistent BackdoorInstall malware with persistence across reboots
Network PivotUse router to attack LAN-connected devices
Traffic InterceptionRedirect or inspect all traffic through compromised device
Botnet RecruitmentEnlist device in Mirai-style IoT botnets

Immediate Remediation

Step 1: Update Firmware

Download and apply firmware version 1.1.5_C1_202607071108 or later from the D-Link support portal.

  1. Log in to the router admin panel (default: http://192.168.0.1)
  2. Navigate to Maintenance > Firmware Upgrade
  3. Upload the downloaded firmware file
  4. Wait for the router to reboot and verify the version

Step 2: Restrict Management Interface Access

If firmware update cannot be applied immediately:

1. Disable remote management (WAN-side access to admin panel)
2. Apply ACLs to permit only trusted management IPs
3. Place the device behind a stateful firewall
4. Consider disabling the debug diagnostic interface if accessible separately

Step 3: Verify No Existing Compromise

# If you have shell access to the device, check for unexpected processes
ps aux | grep -v '\[' | grep -v 'grep'
 
# Review recently modified files
find / -newer /etc/passwd -type f 2>/dev/null
 
# Check crontab for persistence
crontab -l

Detection

IndicatorDescription
POST requests to /boafrm/formDebugDiagnosticRun with shell metacharactersActive exploitation attempt
Unexpected outbound connections from router IPPost-exploitation C2 traffic
DNS queries for unusual domains from routerMalware beacon activity
Admin password changes without user actionAttacker credential rotation

Network Exposure

D-Link mobile routers are commonly deployed in SOHO, retail, and IoT environments. Devices directly exposed to the internet with management interfaces accessible on the WAN side are at highest risk. Shodan and similar search engines may index thousands of exposed instances.


Remediation Checklist

  1. Verify hardware revision — check the label on the device for "Ver. C1"
  2. Check current firmware — Admin panel > Status > Device Info
  3. Download patched firmware from D-Link support
  4. Apply update and verify version after reboot
  5. Disable WAN management if not required
  6. Change default credentials if still at factory defaults
  7. Monitor logs for suspicious POST requests to boafrm endpoints
  8. Segment IoT devices onto a separate VLAN

Related CVEs in This Advisory Series

This vulnerability is part of a cluster of four command injection flaws disclosed simultaneously for the DWR-M961 C1:

CVEInterfaceVulnerable Field
CVE-2026-71948 (this advisory)/boafrm/formDebugDiagnosticRunhost
CVE-2026-71949/boafrm/formUSSDSetupussdValue, selectMenuValue
CVE-2026-71950/boafrm/formSmsManageaction_value
CVE-2026-71951/boafrm/formIMEISetupIMEI_value

References

  • NIST NVD — CVE-2026-71948
  • D-Link Security Advisory
#D-Link#Command Injection#CVE-2026-71948#Router Security#Network Devices#RCE

Related Articles

CVE-2026-71949: D-Link DWR-M961 Command Injection via formUSSDSetup

A critical unauthenticated command injection vulnerability in D-Link DWR-M961 routers enables remote code execution through the ussdValue and selectMenuValue fields in the formUSSDSetup interface. CVSS 9.8.

4 min read

CVE-2026-71950: D-Link DWR-M961 Command Injection via formSmsManage

A critical unauthenticated command injection in the D-Link DWR-M961 SMS management interface allows remote attackers to execute arbitrary OS commands via the action_value field. CVSS 9.8.

4 min read

CVE-2026-71951: D-Link DWR-M961 Command Injection via formIMEISetup

A critical unauthenticated command injection vulnerability in D-Link DWR-M961 routers allows remote code execution by injecting OS commands into the IMEI_value field of the formIMEISetup interface. CVSS 9.8.

5 min read
Back to all Security Alerts