# CVE-2021-27137: DD-WRT Stack-Based Buffer Overflow Vulnerability

- Severity: High 8.1 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2026-07-21. 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.
- Likelihood of exploitation in the next 30 days (EPSS): 15.7%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2026-07-16T00:00:00.000Z
- Modified: 2026-07-22T05:17:07.330Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact total
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- DD-WRT DD-WRT: before 45724

## References

- <https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/> (exploit, third-party-advisory)
- <https://securityaffairs.com/193290/uncategorized/iot-botnet-c0xmo-adds-competitor-killing-capability.html> (exploit, third-party-advisory)
- <https://www.bleepingcomputer.com/news/security/c0xmo-botnet-spreads-via-dd-wrt-router-flaw-kills-rival-malware/> (exploit, third-party-advisory)
- <https://www.fortinet.com/blog/threat-research/inside-cross-platform-propagation-of-new-gafgyt-variant-c0xmo> (exploit)
- <https://svn.dd-wrt.com/changeset/45724> (kev, patch)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-27137> (government-resource, us-government-resource)
- <https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk> (kev)
- <https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk> (kev)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27137> (kev)

## Sources

- CVE List: [CVE-2021-27137](https://www.cve.org/CVERecord?id=CVE-2021-27137), CVE Terms of Use, modified 2026-07-22
- NVD: [CVE-2021-27137](https://nvd.nist.gov/vuln/detail/CVE-2021-27137), Public domain, modified 2026-07-22
- CISA KEV: [CVE-2021-27137](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-27137), CC0-1.0, modified 2026-07-21

---

Page: https://cve.day/CVE-2021-27137 · Whole record: https://cve.day/CVE-2021-27137.json · Rebuilt by cve.day 2026-11-25T22:58:09.116Z
