Home / DD-WRT / DD-WRT / CVE-2021-27137
CVE-2021-27137: is it exploited, and which versions of DD-WRT are affected and fixed?
CVE-2021-27137 is a stack buffer overflow vulnerability in DD-WRT, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on July 21, 2026, with a federal due date of July 24, 2026. Affected: DD-WRT before 45724 (CVE record by mitre). Fixed in 45724 (CVE record by mitre). Severity: High (8.1, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2021-27137?
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).
From the CVE record by mitre, last updated July 22, 2026, 03:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| DD-WRT | DD-WRT | before 45724 | 45724 |
As the CVE record by mitre states it, last updated July 22, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| dd-wrt | dd-wrt | before 45724 | operating system |
NVD analysis (status Analyzed), last modified July 22, 2026, 05:17 UTC.
How severe is CVE-2021-27137?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | mitre |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-27137 exploited in the wild?
- CISA KEV
- Listed as DD-WRT Stack-Based Buffer Overflow Vulnerability, added July 21, 2026; federal agencies must act by July 24, 2026
- Required action
- 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 use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, July 21, 2026)
- EPSS
- 15.7% probability of exploitation activity in the next 30 days, percentile 96.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-121 Stack-based Buffer Overflow
Where are the vendor advisories and references?
- https://svn.dd-wrt.com/changeset/45724
- 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
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-27137 government-resource
When was it published, and where is the official record?
- Reserved
- February 10, 2021
- Published
- July 16, 2026, 00:00 UTC
- CVE record updated
- July 22, 2026, 03:55 UTC by mitre
- NVD
- Analyzed, last modified July 22, 2026, 05:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect DD-WRT?
- Aug 5, 2022CVE-2022-27631 DD-WRT: out-of-bounds write (memory corruption)
- Jun 9, 2020CVE-2020-13976 Dd-wrt: OS command injection disputed
- Feb 6, 2020CVE-2012-6297 Dd-wrt: cross-site request forgery (CSRF)
- Aug 14, 2009CVE-2009-2766 Dd-wrt: n/a
- Aug 14, 2009CVE-2009-2765 Dd-wrt: improper input validation
- Aug 14, 2009CVE-2008-6975 Dd-wrt: cross-site request forgery (CSRF)
- Aug 14, 2009CVE-2008-6974 Dd-wrt: cross-site request forgery (CSRF)
Questions about CVE-2021-27137
Is CVE-2021-27137 exploited in the wild?
Yes. CISA added CVE-2021-27137 to its Known Exploited Vulnerabilities catalog on July 21, 2026 and set federal agencies a due date of July 24, 2026. FIRST's EPSS gives it a 15.7% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of DD-WRT are affected by CVE-2021-27137?
DD-WRT before 45724, per the CVE record by mitre. The tables above give every range the sources list.
Which version fixes CVE-2021-27137?
45724, per the CVE record by mitre. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-27137?
High (8.1, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2021-27137?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.