Stack-based buffer overflow in DD-WRT
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.
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).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Active
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA DD-WRT (DD-WRT) Fixed in 45724
Timeline
- 2026-07-21 Added to CISA KEV
- 2026-10-02 Threatist record created from CVE-2021-27137
- 2026-10-03 Alias added: GHSA-qx3v-2jx6-8m2c
References
Exploit 4
- https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/
- https://securityaffairs.com/193290/uncategorized/iot-botnet-c0xmo-adds-competitor-killing-capability.html
- https://www.bleepingcomputer.com/news/security/c0xmo-botnet-spreads-via-dd-wrt-router-flaw-kills-rival-malware/
- https://www.fortinet.com/blog/threat-research/inside-cross-platform-propagation-of-new-gafgyt-variant-c0xmo
More Dd-wrt vulnerabilities
- TI-2022-10612 Out-of-bounds write in DD-WRT CVSS 3.1CRITICAL 9.8
- TI-2009-02631 httpd.c in httpd in the management GUI in DD-WRT 24 sp1, and other versions before build… CVSS 2.0HIGH 8.3
- TI-2020-10949 An issue was discovered in DD-WRT through 16214. CVSS 3.1HIGH 8.8
- TI-2012-05124 Command Injection vulnerability exists via a CSRF in DD-WRT 24-sp2 from specially crafted… CVSS 3.1HIGH 8.8
- TI-2009-02632 httpd.c in httpd in the management GUI in DD-WRT 24 sp1 does not require administrative… CVSS 2.0HIGH 7.5
- TI-2008-06663 Multiple cross-site request forgery (CSRF) vulnerabilities in apply.cgi in DD-WRT 24 sp2… CVSS 2.0MEDIUM 6.8
Sources
- CVE-2021-27137 · CVE Program
- CVE-2021-27137 · NVD
- CISA Known Exploited Vulnerabilities
- FIRST EPSS
- GHSA-qx3v-2jx6-8m2c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences