CVE-2021-27137 — DD-WRT
HIGHCVE-2021-27137 is a high-severity (CVSS 8.1) CWE-121 vulnerability in DD-WRT DD-WRT. It is in CISA's Known Exploited Vulnerabilities catalog (added 2026-07-21) — treat it as actively exploited and patch now. A fix is available — see the affected versions and patch details below.
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…
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2026-07-21. Federal agencies were required to remediate by 2026-07-24.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2021-27137.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
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).
Affected Products
DD-WRTDD-WRTDetection & mitigation playbook
Vendor / applianceDetect
Inventory every DD-WRT DD-WRT deployment and check each version against the affected-products list above.
Fix
Apply the DD-WRT DD-WRT security patch or hotfix for CVE-2021-27137 on the affected version, following the vendor advisory for your exact build.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2021-27137 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.