CVE-2021-27137
JSON

8.1highExploited

DD-WRT Stack-Based Buffer Overflow Vulnerability

Severity
8.1high CVSS:3.1 by mitre
Exploit likelihood
15.7% (higher than 96% of CVEs; EPSS, by FIRST)
Published
Last changed
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).

Affected

Product or packageVersionsReported by
DD-WRT DD-WRTbefore 45724CVE List, NVD, CISA KEV

Classification

CWE-121

SSVC (CISA-ADP): exploitation active, automatable no, technical impact total.

What each source says

CVE List

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

CISA KEV

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.

References

https://svn.dd-wrt.com/changeset/45724kev, patch
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.htmlexploit, 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-c0xmoexploit
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-27137government-resource, us-government-resource
https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-riskkev
https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-riskkev
https://nvd.nist.gov/vuln/detail/CVE-2021-27137kev

Sources

SourceRecordLicence
CVE ListCVE-2021-27137 changed 2026-07-22CVE Terms of Use
NVDCVE-2021-27137 changed 2026-07-22Public domain
CISA KEVCVE-2021-27137 changed 2026-07-21CC0-1.0