CVE-2021-27137 Details
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).
A buffer overflow vulnerability has been identified in the UPnP handling of DD-WRT router firmware, specifically in versions prior to 45724. The issue arises from an unsafe string copy operation in the SSDP parser, which can be exploited by an unauthenticated remote attacker. Exploitation requires UPnP to be enabled, which is not the default setting, and only listens on internal interfaces by default. The vulnerability is triggered by sending a crafted M-SEARCH request with an oversized UUID value, causing the internal buffer to overflow.
Users are advised to update to the latest DD-WRT version and disable UPnP if it is not needed. Fortinet customers are protected against the C0XMO botnet variant that exploits this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/ | CISA-ADP | ExploitThird Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-27137 | CISA-ADP | US Government Resource |
| https://securityaffairs.com/193290/uncategorized/iot-botnet-c0xmo-adds-competitor-killing-capability.html | [email protected] | ExploitThird Party Advisory |
| https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/ | [email protected] | ExploitThird Party Advisory |
| https://svn.dd-wrt.com/changeset/45724 | [email protected] | Patch |
| https://www.bleepingcomputer.com/news/security/c0xmo-botnet-spreads-via-dd-wrt-router-flaw-kills-rival-malware/ | [email protected] | ExploitThird Party Advisory |
| https://www.fortinet.com/blog/threat-research/inside-cross-platform-propagation-of-new-gafgyt-variant-c0xmo | [email protected] | Exploit |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| DD-WRT Stack-Based Buffer Overflow Vulnerability | Jul 21, 2026 | Jul 24, 2026 | Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dd-wrt dd-wrt | < 45724 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | Initial Analysis | [email protected] |
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | CVE CISA KEV Update | Cybersecurity and Infrastructure Security Agency (CISA) U.S. Civilian Government |
| Jul 16, 2026 | CVE Modified | CISA-ADP |
| Jul 16, 2026 | New CVE Received | [email protected] |