Security Advisory

CVE-2021-35394: Realtek SDK UDPServer Command Injection

Last updated:
  • CVE-2021-35394

CVE-2021-35394 is a remote, unauthenticated command injection and memory corruption flaw in UDPServer, the MP diagnostic daemon of Realtek's Jungle SDK for RTL819x routers. NVD scores it 9.8 and CISA lists it in KEV. Apply Realtek's MP daemon patch or remove UDPServer, then ship fixed firmware for every model.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

99.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-35394 · Source: NVD

Affected components

ComponentCPEVersion range
Realtek Jungle SDK (rtl819x) MP Daemon / UDPServercpe:2.3:a:realtek:rtl819x_jungle_software_development_kit:*:*:*:*:*:*:*:*2.0 up to and including 3.4.14b (NVD); Realtek lists rtl819x-SDK-v3.2.x, v3.4.x, v3.4T, v3.4T-CT and rtl819x-eCos-v1.5.x, fixed by patch archives dated 2021-06-22, 2021-07-05 and 2021-07-01 (Realtek advisory 2021-08-15)
D-Link routers, access points and DSL gateways built on the Realtek SDK (DIR-615, DIR-815, DIR-825, DIR-842, DAP-1530, DAP-1610, DSL-124, DSL-224 and others)—Per hardware revision; e.g. fixed in DIR-615 Z1 v1.0.2_WW_Hotfix, DIR-815 D1 v4.11WWB01, DIR-825 G1 v7.12B01; DIR-842 R1 and DIR-825 R1 end of life; DIR-615 T2 not affected by CVE-2021-35394 (D-Link SAP10253)

What does this mean for affected devices?

CVE-2021-35394 is in the "MP Daemon", a factory diagnostic tool that Realtek ships with its RTL819x router SDK and that is usually compiled as the UDPServer binary. NVD's description says Realtek Jungle SDK "version v2.x up to v3.4.14B" provides the tool and that it "is affected by multiple memory corruption vulnerabilities and an arbitrary command injection vulnerability that can be exploited by remote unauthenticated attackers" (NVD). NVD's Primary score is 9.8, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and its own weakness entry is NVD-CWE-Other. The CNA, MITRE, published no score; CISA's ADP container in the CVE record adds the same 9.8 vector and CWE-78 (OS command injection), and the KEV entry lists CWE-78 and CWE-138.

Which Realtek SDK versions are affected?

NVD's CPE configuration covers cpe:2.3:a:realtek:rtl819x_jungle_software_development_kit from 2.0 up to and including 3.4.14b, which matches its description. Realtek's AP-Router SDK advisory, released on 2021-08-15 for CVE-2021-35392 to CVE-2021-35395, lists rtl819x-SDK-v3.2.x, v3.4.x, v3.4T and v3.4T-CT plus rtl819x-eCos-v1.5.x as affected. It says the UDPServer MP tool has "multiple buffer overflow vulnerabilities and an arbitrary command injection vulnerability, due to insufficient legality detection on commands received from clients." ONEKEY (then IoT Inspector), which reported the flaws, shows the cause in its advisory: the daemon listens on UDP port 9034, compares only the first three bytes of a received buffer against a command name, appends > /tmp/MP.txt and passes it to system(). ONEKEY notes that the same injection was reported in 2015 without a CVE, and that some devices start UDPServer at boot, some start it on request, and some only carry the binary.

How do you fix CVE-2021-35394?

Realtek does not publish a new SDK release for this. Its advisory names patch archives that the chip customer gets through Realtek: 20210622_sdk_3.2.3_wsc_binary_and_mp_daemon_patch, 20210622_sdk_3.4.11E_wsc_binary_and_mp_daemon_patch, 20210705_sdk-v3.4t_pre5_wsc_binary_and_mp_daemon_patch, 20210622_sdk-v3.4t_pre7_wsc-upnp-mp and 20210701_ecosV1.5.3_patch_for_fixing_vulnerabiits. A router owner only gets the fix when the device maker rebuilds its firmware. The safer fix for a device maker is to remove UDPServer from production images altogether, since it is a factory test tool, and to keep UDP 9034 closed on every interface. Our Realtek SDK vulnerabilities guide shows how to find the SDK branch and the UDPServer binary in an image, and the command injection fix guide covers replacing system() calls on network input.

Which devices are affected?

Realtek's advisory names SDK series, not products, so the model list comes from each device maker. D-Link's support announcement SAP10253 covers all four Realtek CVEs and lists its affected models by hardware revision. It gives fixed firmware for, among others, DIR-615 Z1 (v1.0.2_WW_Hotfix), DIR-815 D1 (v4.11WWB01), DIR-825 G1 (v7.12B01), DIR-825+ A1 (v1.04WWb02), DAP-1610 B1, DAP-1530 B1, DSL-124 R1 and DSL-224 R1 and S1. It marks DIR-842 R1 and DIR-825 R1 as end of life, and for DIR-615 T2 states "CVE-2021-35394/95: No impact". For many other DIR and DSL models the table names Q4 2021 as the release target, with rows last updated on 2021-09-17 or 2021-09-24, so check D-Link's current download page for those revisions. Unit 42 counted "almost 190 models of devices from 66 different manufacturers" affected by this CVE.

Is CVE-2021-35394 exploited?

Yes. CISA added it to the KEV catalog on 2021-12-10 as "Realtek Jungle SDK Remote Code Execution Vulnerability", with the required action "Apply updates per vendor instructions" and known ransomware campaign use marked Unknown; it is listed as of 2026-11-19 (catalog version 2026.11.18). Unit 42 observed 134 million exploit attempts between August 2021 and December 2022, mostly delivering Mirai, Gafgyt and Mozi variants. FIRST EPSS gives it 0.99873, the 99.96th percentile, in the 2026-11-18 dataset (CISA KEV, FIRST EPSS). The web server flaw from the same Realtek advisory is CVE-2021-35395, and the older Realtek miniigd UPnP flaw is CVE-2014-8361.

How to fix this class of issueThis advisory's weakness class is Command injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix command injection in embedded firmware.

Evidence

  • NVD: [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE NVD-CWE-Other; CISA ADP Secondary 9.8 same vector, CWE-78; CPE rtl819x_jungle_software_development_kit 2.0 to 3.4.14b inclusive; published 2021-08-16; status Analyzed, read 2026-11-19. — NVD
  • Realtek AP-Router SDK Advisory (2021-08-15): affected rtl819x-SDK-v3.2.x, v3.4.x, v3.4T, v3.4T-CT, rtl819x-eCos-v1.5.x; UDPServer MP tool has multiple buffer overflows and arbitrary command injection due to insufficient legality detection on commands; patches 20210622_sdk_3.2.3, 20210622_sdk_3.4.11E, 20210705_sdk-v3.4t_pre5, 20210622_sdk-v3.4t_pre7, 20210701_ecosV1.5.3. — Realtek
  • D-Link SAP10253: covers CVE-2021-35392 to 35395 on Realtek RTL8xxx SDK; fixed FW for DIR-615 Z1 v1.0.2_WW_Hotfix, DIR-815 D1 v4.11WWB01, DIR-825 G1 v7.12B01, DIR-825+ A1 v1.04WWb02, DAP-1610 B1, DAP-1530 B1, DSL-124 R1, DSL-224 R1/S1; DIR-842 R1, DIR-825 R1 EOL; DIR-615 T2 'CVE-2021-35394/95: No impact'; others Q4 2021 target. — D-Link
  • ONEKEY (IoT Inspector) advisory: UDPServer listens on UDP 9034, checks first 3 bytes, appends > /tmp/MP.txt and calls system(); injection reported in 2015 without a CVE; Realtek's earlier fix incomplete. — ONEKEY
  • Unit 42 (2023-01-24): CVE-2021-35394 affects almost 190 models from 66 manufacturers; 134 million exploit attempts August 2021 to December 2022, mostly Mirai, Gafgyt, Mozi. — Palo Alto Networks Unit 42
  • CVE record (CNA MITRE): published 2021-08-16, no CNA score; CISA ADP 9.8 and CWE-78. — CVE.org
  • CISA KEV catalog 2026.11.18: listed, dateAdded 2021-12-10, due 2021-12-24, knownRansomwareCampaignUse Unknown, CWE-78 and CWE-138, required action apply updates per vendor instructions; checked 2026-11-19. — CISA KEV
  • EPSS 0.99873, percentile 0.99964, dataset 2026-11-18, read 2026-11-19. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Realtek AP-Router SDK Advisory (CVE-2021-35392/35393/35394/35395), 2021-08-15
  3. D-Link SAP10253: D-Link Devices affected by Realtek Chipset RTL8xxx Realtek SDK vulnerabilities
  4. ONEKEY: Multiple issues in Realtek SDK affect hundreds of thousands of devices down the supply chain
  5. Unit 42: Realtek SDK Vulnerability Attacks Highlight IoT Supply Chain Threats
  6. CVE.org record CVE-2021-35394 (CNA: MITRE)
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which Realtek SDK versions are affected by CVE-2021-35394?

NVD lists the Realtek Jungle SDK from 2.0 up to and including 3.4.14B. Realtek's own advisory names the rtl819x-SDK-v3.2.x, v3.4.x, v3.4T and v3.4T-CT series and rtl819x-eCos-v1.5.x (per NVD and the Realtek AP-Router SDK advisory of 2021-08-15).

How does a device maker fix CVE-2021-35394?

Apply Realtek's MP daemon patch for the SDK branch in use, for example 20210622_sdk_3.2.3_wsc_binary_and_mp_daemon_patch or the 3.4.11E, 3.4T and eCos 1.5.3 archives, then rebuild and ship firmware per model (per the Realtek AP-Router SDK advisory). ONEKEY notes that UDPServer is a diagnostic tool that some images start at boot and others only carry as a binary, so dropping it from production builds removes the exposed service as well (per ONEKEY's advisory).

Which D-Link models are affected by the Realtek SDK flaws?

D-Link's SAP10253 lists routers, access points and DSL gateways by hardware revision, with fixed firmware for models such as DIR-615 Z1, DIR-815 D1, DIR-825 G1, DAP-1530 B1 and DSL-124 R1, end-of-life status for DIR-842 R1 and DIR-825 R1, and no impact from CVE-2021-35394 on DIR-615 T2 (per D-Link SAP10253).

Is CVE-2021-35394 exploited in the wild?

Yes. It has been in the CISA KEV catalog since 2021-12-10 and is listed as of 2026-11-19 (catalog version 2026.11.18). Unit 42 recorded 134 million exploit attempts by December 2022, and FIRST EPSS gives it 0.99873, the 99.96th percentile, in the 2026-11-18 dataset (per CISA KEV, Unit 42 and FIRST EPSS).