CVE-2021-27137 is an unauthenticated stack-based buffer overflow (CWE-121) in DD-WRT's UPnP/SSDP handler (ssdp.c) reachable via a crafted M-SEARCH UDP packet, enabling remote code execution on the router. It is actively exploited (CISA KEV) by the c0xmo/Gafgyt IoT botnet, but exploitation requires UPnP to be enabled (off by default and normally listening only on internal interfaces), which reduces the internet-facing exposure population.
Data Source: CIRCL
Confidence: HIGH
Exploitation Method: DIRECT_NETWORK
CVE Published: 2026-07-16
Added to CISA KEV: 2026-07-21 5 DAYS BETWEEN CVE AND KEV
CVE-2021-27137 is a stack-based buffer overflow vulnerability (CWE-121) residing in the SSDP (Simple Service Discovery Protocol) handler within the `ssdp.c` component of DD-WRT firmware. The vulnerability is triggered by an unsafe `strcpy` operation that copies the `uuid` field from an incoming UPnP M-SEARCH UDP packet into a fixed 128-byte stack buffer without performing any length checks. Because it allows an unauthenticated remote attacker to overwrite adjacent stack memory, it represents a critical security risk for affected networking devices.