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-71951: D-Link DWR-M961 Command Injection via formIMEISetup
CVE-2026-71951: D-Link DWR-M961 Command Injection via formIMEISetup

Critical Security Alert

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

SECURITYCRITICALCVE-2026-71951

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.

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

CVE-2026-71951 is the fourth in a cluster of critical command injection vulnerabilities disclosed for the D-Link DWR-M961 mobile router (hardware version C1). Firmware versions prior to 1.1.5_C1_202607071108 are vulnerable. The affected endpoint is /boafrm/formIMEISetup, where the IMEI_value parameter is passed unsanitized to an OS-level shell call, enabling unauthenticated remote code execution.

CVSS Score: 9.8 (Critical)

The IMEI (International Mobile Equipment Identity) configuration interface is particularly sensitive: IMEI manipulation can affect how the device registers with cellular networks. Combined with command injection, this vulnerability allows an attacker to simultaneously gain root access and potentially alter the device's cellular identity.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-71951
CVSS Score9.8 (Critical)
TypeCommand Injection (CWE-77)
Vulnerable Interface/boafrm/formIMEISetup
Vulnerable ParameterIMEI_value
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/formIMEISetup endpoint allows configuration of the cellular modem's IMEI value — a 15-digit identifier unique to each mobile device. Some routers expose IMEI configuration for carrier compatibility or SIM swapping scenarios. The IMEI_value POST parameter is passed through to a system call without validation, allowing shell metacharacter injection.

Exploit Chain

1. Attacker scans for exposed D-Link DWR-M961 C1 admin interface
2. POST request sent to /boafrm/formIMEISetup
3. IMEI_value field contains injected shell payload (e.g., "123456789012345;command")
4. boahttp web daemon passes value to system() call without filtering
5. Command executes as root
6. Attacker gains persistent root shell, extracts credentials, pivots to LAN

Example Payload Structure

POST /boafrm/formIMEISetup HTTP/1.1
Host: <router-ip>
Content-Type: application/x-www-form-urlencoded
 
IMEI_value=123456789012345;id>/tmp/pwned&submit=Apply

Impact Scope

ImpactDescription
Remote Code ExecutionArbitrary OS commands executed as root
IMEI ManipulationAlter device's cellular identity (SIM fraud enablement)
Credential ExfiltrationExtract admin passwords, Wi-Fi PSK, APN credentials
Persistent CompromiseInstall backdoor surviving device reboots
LAN PivotAttack internal network from trusted router
Cellular AbuseControl modem to send data or evade network tracking

The IMEI-specific risk deserves attention: an attacker who can write a valid IMEI to the device may be able to impersonate other cellular devices on the network, with implications for both carrier billing fraud and regulatory compliance.


Immediate Remediation

Step 1: Firmware Update (Primary Fix)

Update to firmware 1.1.5_C1_202607071108 or later:

  1. Log in at http://192.168.0.1 (or your router's LAN IP)
  2. Navigate to Maintenance > Firmware Upgrade
  3. Download the patched firmware from D-Link's support portal
  4. Apply the update and reboot
  5. Verify new version under Status > Device Info

Step 2: Immediate Mitigations

1. DISABLE remote management (WAN access to admin panel) immediately
2. Restrict admin interface to trusted IPs via ACL
3. Change default admin credentials if still factory-set
4. Network-segment the router away from critical LAN resources
5. Consider disabling IMEI reconfiguration if the feature is unused

Step 3: Verify Modem IMEI Integrity

If you suspect the router has been accessed, verify the current IMEI has not been changed:

# If admin shell access available — query modem IMEI via AT command
# (exact command depends on modem chipset)
echo -e "AT+CGSN\r" > /dev/ttyUSB0
cat /dev/ttyUSB0

Compare the returned IMEI with the value on the device label. Any mismatch indicates potential compromise.


Detection

IndicatorDescription
POST to /boafrm/formIMEISetup with non-numeric characters in IMEI_valueInjection attempt (valid IMEI is 15 digits only)
Unexpected change to device IMEI reported by carrierSuccessful IMEI manipulation
Outbound connections to unfamiliar IPs from routerPost-compromise C2 traffic
Failed login attempts followed by admin lockoutBrute-force or takeover attempt

Broader Context: DWR-M961 C1 Command Injection Cluster

All four CVEs affect the same device family and share the same underlying vulnerability class — insufficient input sanitization in the boahttp embedded web server. The breadth of affected endpoints (diagnostic, USSD, SMS, and IMEI interfaces) suggests these interfaces were developed with no input validation policy in place.

Organizations operating these routers should treat all four CVEs as a single high-priority remediation event.

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

References

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

Related Articles

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.

5 min read

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
Back to all Security Alerts