CVE-2021-27137: An issue was discovered in router/upnp/src/ssdp.c in DD-WRT before 45724.
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).
Security readout for executives and security teams
Plain-English summary
CVE-2021-27137 is a DD-WRT UPnP buffer overflow affecting builds before 45724. It matters because vulnerable routers can be compromised without authentication when UPnP is enabled. UPnP is reportedly off by default and limited to internal interfaces by default, which narrows exposure but does not remove risk.
Executive priority
Treat this as urgent for DD-WRT environments because CISA identifies active exploitation. Priority is highest for routers using UPnP or reachable from less trusted networks.
Technical view
The flaw is an unsafe strcpy in router/upnp/src/ssdp.c, in ssdp_msearch, reachable through UPnP M-SEARCH handling. It is classified as CWE-121 with CVSS 3.1 score 8.1. Exploitation requires UPnP to be enabled; the vulnerable path is unauthenticated and network-reachable in that configuration.
Likely exposure
Likely exposure is DD-WRT devices running builds before 45724 with UPnP enabled, especially where internal network compromise or misconfiguration makes UPnP reachable.
Exploitation context
CISA KEV lists this CVE as known exploited. Public reporting also ties it to C0xmo/Gafgyt botnet activity against DD-WRT routers. The bundle does not prove every vulnerable configuration is internet-exposed.
Researcher notes
Sources identify the vulnerable function and fixed DD-WRT changeset but do not provide complete environmental prevalence. Avoid assuming exposure unless UPnP state, build number, and interface reachability are confirmed.
Mitigation direction
Upgrade DD-WRT to build 45724 or later where supported.
Disable UPnP if it is not operationally required.
Restrict UPnP access to trusted internal interfaces only.
Check current DD-WRT and CISA guidance for any new vendor instructions.
Monitor routers for unexpected processes, traffic spikes, or configuration changes.
Validation and detection
Inventory DD-WRT routers and record build numbers.
Confirm whether UPnP is enabled on each device.
Verify UPnP is not reachable from untrusted networks.
Prioritize devices below build 45724 for remediation.
Review logs and network telemetry for unusual router-originated activity.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-121: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
Exploitation: activeAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-121 · source CWE mapping
Stack-based Buffer Overflow
Stack-based Buffer Overflow represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.