CVE-2021-27137
Description
An issue was discovered in router/upnp/src/ssdp.c in DD-WRT before 45724. An unsafe strcpy in the UPnP handling functionality allows an unauthenticated remote attacker to send a request that would overflow an internal fixed buffer. Exploitation requires the DD-WRT user to enable UPnP (which is off by default, and only listens on internal interfaces by default). This occurs in ssdp_msearch (reachable by an M-SEARCH request).
Summary dbcve.org
Buffer overflow vulnerability in DD-WRT's UPnP SSDP handling (router/upnp/src/ssdp.c). An unsafe strcpy in the ssdp_msearch function allows an unauthenticated remote attacker to overflow a fixed-size buffer via a specially crafted M-SEARCH SSDP request. Exploitation requires UPnP to be enabled, which is off by default and restricted to internal interfaces.
Mitigation
Upgrade DD-WRT to version 45724 or later. If UPnP is not required, leave it disabled. Ensure UPnP is only exposed to trusted internal networks.