CVE-2021-35393
Critical · 9.8CVSS
9.8
EPSS
66.4%
Published
Aug 16, 2021
CISA due date
—
Cloudanix analysis
Some Realtek-based network devices can be remotely taken over through a built-in network discovery feature unless their firmware is updated or the feature is disabled.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Firmware
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
CVE-2021-35393 is a remotely reachable stack buffer overflow in the Realtek Jungle SDK WiFi Simple Config service, commonly exposed by binaries named wscd or mini_upnpd. The flaw is triggered by unsafe parsing of the UPnP SUBSCRIBE or UNSUBSCRIBE Callback HTTP header used by the device’s UPnP/SSDP implementation. Because exploitation requires no authentication, no user interaction, and can occur over the network, a successful attacker can corrupt process memory and execute arbitrary code with the privileges of the vulnerable service. On embedded devices, this often results in full device compromise, persistence through modified startup scripts or firmware-resident changes, traffic interception, botnet enrollment, lateral movement, or device disruption.
Why it matters to the business
Affected Realtek-based routers, gateways, repeaters, access points, and IoT devices can be taken over remotely if the vulnerable UPnP/WiFi Simple Config service is reachable. Compromise can disrupt connectivity, expose internal network traffic, enable attackers to pivot into trusted networks, or enroll devices into botnets used for DDoS and proxying. The high CVSS score, available public exploit code, and high EPSS likelihood indicate meaningful exploitation risk even though the vulnerability is not currently listed in CISA KEV. Business impact is amplified because Realtek SDK components are widely embedded in downstream products, and organizations may not recognize that branded network devices include the vulnerable SDK component.
How an attack unfolds
An attacker first identifies a device exposing the Realtek WiFi Simple Config UPnP service, typically by scanning for SSDP/UPnP endpoints on UDP/1900 and related HTTP control/eventing interfaces. After confirming that the target is running a vulnerable SDK-derived service such as wscd or mini_upnpd, the attacker sends a crafted UPnP SUBSCRIBE or UNSUBSCRIBE request containing an oversized or malformed Callback header. The vulnerable parser copies or processes that header unsafely on the stack, causing memory corruption. With a reliable exploit, the attacker controls execution flow and runs device-architecture-specific payload code, often MIPS or ARM on embedded Realtek platforms. Post-exploitation activity may include downloading malware, altering DNS or firewall settings, opening a backdoor, joining a botnet, disabling services, or using the device as a foothold or traffic relay. Because the attack is unauthenticated and network-based, internet-exposed devices and devices reachable from untrusted LAN segments are at greatest risk.
How to fix it
Update affected devices to vendor firmware that incorporates a Realtek Jungle SDK release newer than the vulnerable v2.x through v3.4.14B codebase, or a vendor-specific firmware build that explicitly remediates CVE-2021-35393. Because no universal fixed package version is provided for the SDK in the input, remediation must be performed through the device OEM or firmware supplier. If firmware is unavailable, disable UPnP, SSDP, and WiFi Simple Config/WPS-related services where operationally possible; block inbound access to UPnP eventing/control interfaces from untrusted networks; and prevent UDP/1900 exposure from the internet. Network devices that cannot be updated and must expose the vulnerable service should be isolated, replaced, or placed behind filtering controls. Administrators should also review device configurations for unauthorized DNS, port forwarding, firewall, and management-access changes after remediation.
How to confirm the fix worked
Confirm the device firmware version against the OEM advisory or release notes and verify that the firmware includes a Realtek SDK fix for the vulnerable WiFi Simple Config UPnP Callback parsing issue. From a network perspective, validate that UPnP/SSDP is disabled or restricted by confirming UDP/1900 and related UPnP HTTP event subscription endpoints are not reachable from untrusted networks. Where scanning is authorized, enumerate UPnP service descriptions and confirm the absence of vulnerable wscd, mini_upnpd, or SDK-derived behavior. Review device process lists, if shell access is available, for wscd or mini_upnpd and confirm that binaries are from a remediated firmware image. Validate compensating controls by attempting to reach UPnP from external and guest/untrusted segments and confirming the traffic is blocked.
Typical attack path
- Scan for devices exposing SSDP/UPnP services, commonly UDP/1900 and associated HTTP event subscription endpoints.
- Fingerprint responses for Realtek Jungle SDK-derived WiFi Simple Config behavior or service banners associated with wscd, mini_upnpd, or miniigd lineage.
- Send a crafted UPnP SUBSCRIBE or UNSUBSCRIBE HTTP request with a malicious Callback header.
- Trigger a stack buffer overflow in the vulnerable UPnP Callback header parser.
- Redirect execution to attacker-controlled shellcode or a return-oriented payload suited to the device architecture.
- Execute commands, download malware, modify device configuration, or deploy a persistent backdoor.
- Use the compromised device for botnet activity, DDoS, credential interception, network pivoting, or proxying malicious traffic.
How to detect it
Investigate network telemetry, firewall logs, IDS/IPS alerts, device syslog, and packet captures for unsolicited UPnP SUBSCRIBE or UNSUBSCRIBE requests with unusually long, malformed, or external Callback headers. Focus on traffic to SSDP/UPnP services, especially UDP/1900 discovery followed by HTTP requests to UPnP event subscription URLs. Look for repeated crashes, watchdog restarts, or unexpected restarts of wscd, mini_upnpd, or related UPnP/WiFi Simple Config processes. On devices with shell or forensic access, inspect temporary directories, startup scripts, cron entries, init scripts, and writable flash locations for unknown binaries or downloader scripts. Review configuration changes after suspected exploitation, including DNS server changes, new port forwards, new remote administration exposure, altered firewall rules, and unknown user accounts or SSH/Telnet enablement. Network indicators after exploitation may include outbound connections from embedded devices to unfamiliar IPs, command-and-control infrastructure, high-volume DDoS traffic, proxy-like behavior, or downloads using wget, curl, tftp, or busybox utilities. Because public exploitation exists and embedded devices often have limited logging, absence of logs should not be treated as proof of non-compromise; use network captures, configuration comparison, firmware integrity checks, and behavioral baselining where possible.
- SUBSCRIBE /
- UNSUBSCRIBE /
- Callback:
- CALLBACK:
- <http://
- upnp:event
- NT: upnp:event
- SID: uuid:
- UDP/1900
- M-SEARCH * HTTP/1.1
- ST: upnp:rootdevice
- wscd
- mini_upnpd
- miniigd
- /tmp/
- /var/tmp/
- /dev/shm/
- wget http://
- curl http://
- tftp -g
- busybox wget
- chmod +x /tmp/
- /etc/init.d/
- /etc/rc.local
What your security team should do
- Prioritize identification of internet-facing and untrusted-network-reachable devices using Realtek Jungle SDK-derived UPnP/WiFi Simple Config services because public exploit code exists and EPSS is high.
- Apply OEM firmware updates that remediate the Realtek Jungle SDK UPnP Callback header overflow; if no update exists, plan device replacement.
- Disable UPnP, SSDP, WPS, and WiFi Simple Config services wherever they are not strictly required.
- Block UDP/1900 and UPnP eventing/control traffic at network boundaries and between untrusted segments and device-management networks.
- Run authenticated configuration reviews on affected network devices to look for unauthorized DNS servers, port forwards, firewall rules, remote management exposure, and startup changes.
- Monitor for scanning and exploitation attempts using malformed UPnP SUBSCRIBE or UNSUBSCRIBE requests containing suspicious Callback headers.
- Segment embedded and network infrastructure devices from user workstations and server networks to reduce post-compromise pivoting.
- Treat unexplained crashes or restarts of wscd or mini_upnpd as potential exploitation indicators and collect firmware, logs, and volatile process/network state before rebooting when feasible.
The record
Realtek Jungle SDK version v2.x up to v3.4.14B provides a 'WiFi Simple Config' server that implements both UPnP and SSDP protocols. The binary is usually named wscd or mini_upnpd and is the successor to miniigd. The server is vulnerable to a stack buffer overflow vulnerability that is present due to unsafe parsing of the UPnP SUBSCRIBE/UNSUBSCRIBE Callback header. Successful exploitation of this vulnerability allows remote unauthenticated attackers to gain arbitrary code execution on the affected device.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-78402 Stack-based buffer overflow and out-of-bounds write vulnerability in Thales Sentinel Keys… CWE-787
- CVE-2026-119777 A flaw was found in GStreamer's gst-plugins-bad H.266/VVC parser. CWE-787
- CVE-2026-104065 Scribus before 1.6.7 contains an out-of-bounds write vulnerability in the importdrw… CWE-787
- CVE-2026-104067 Scribus before 1.6.7 contains an out-of-bounds memory access vulnerability in the… CWE-787
- CVE-2026-104066 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the Mac PICT image… CWE-787
- CVE-2026-104061 Scribus before 1.6.7 contains a heap out-of-bounds write vulnerability in the… CWE-787
- CVE-2026-104062 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the PICT image… CWE-787
- CVE-2026-61627 libass is a portable subtitle renderer for the `ASS`/SSA (Advanced Substation… CWE-787