{"id":"CVE-2021-27137","aliases":["CVE-2021-27137"],"related":[],"kind":"vulnerability","state":"published","title":"DD-WRT Stack-Based Buffer Overflow Vulnerability","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"DD-WRT contains a stack-based buffer overflow vulnerability that could allow an unauthenticated attacker to overflow an internal buffer used by UPnP and trigger a code execution vulnerability.","source":"kev"}],"published":"2026-07-16T00:00:00.000Z","modified":"2026-07-22T05:17:07.330Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"45724","status":"affected"}],"vendor":"DD-WRT","product":"DD-WRT","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"45724"}],"vendor":"dd-wrt","product":"dd-wrt","cpe":"cpe:2.3:o:dd-wrt:dd-wrt:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"DD-WRT","product":"DD-WRT","source":"kev"}],"references":[{"url":"https://svn.dd-wrt.com/changeset/45724","tags":["kev","patch"],"sources":["cvelist","nvd","kev"]},{"url":"https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://securityaffairs.com/193290/uncategorized/iot-botnet-c0xmo-adds-competitor-killing-capability.html","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.bleepingcomputer.com/news/security/c0xmo-botnet-spreads-via-dd-wrt-router-flaw-kills-rival-malware/","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.fortinet.com/blog/threat-research/inside-cross-platform-propagation-of-new-gafgyt-variant-c0xmo","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-27137","tags":["government-resource","us-government-resource"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk","tags":["kev"],"sources":["kev"]},{"url":"https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk","tags":["kev"],"sources":["kev"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27137","tags":["kev"],"sources":["kev"]}],"credits":[],"assigner":"mitre","kev":{"dateAdded":"2026-07-21","dueDate":"2026-07-24","name":"DD-WRT Stack-Based Buffer Overflow Vulnerability","requiredAction":"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.","ransomware":false,"notes":"This vulnerability affects a common open-source component, third-party library, proprietary implementation, or a protocol used by different products. Please check with specific vendors for information on patching status. For more information, please see: https://svn.dd-wrt.com/changeset/45724 ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2021-27137"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"total","date":"2026-07-21T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-27137","url":"https://www.cve.org/CVERecord?id=CVE-2021-27137","licence":"CVE Terms of Use","modified":"2026-07-22T03:55:45.793Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-27137","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27137","licence":"Public domain","modified":"2026-07-22T05:17:07.330Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2021-27137","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-27137","licence":"CC0-1.0","modified":"2026-07-21T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:09.116Z","epss":{"score":0.15707,"percentile":0.96932,"date":"2026-12-01T12:00:22.000Z"}}