Skip to content
RedCVE

CVE-2021-27137DD-WRT UPnP stack buffer overflow

ExploitedDD-WRTPublished:

CVSS score

8.1

High

CVSS 3.1 from mitre.org

Exploit probability (EPSS)

4.00%

4.00% chance of exploitation in the next 30 days, higher than 90.8% of all CVEs.

CISA KEV

Actively exploited

Added to KEV on 21 Jul 2026.

US federal deadline to fix: 24 Jul 2026.

In plain words

An unauthenticated attacker on the network can send a crafted M-SEARCH request to overflow a fixed buffer and potentially run code on the router. The flaw only matters if UPnP is enabled, which is off by default, and affects DD-WRT builds before 45724. CISA reports it is being exploited in the wild, so update to build 45724 or later now, or disable UPnP until you can.

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

Source: NVD · CNA: cve@mitre.org

How to fix it, step by step

  1. Treat it as urgent

    Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 21 Jul 2026.

    US federal agencies must fix it by 24 Jul 2026. It's a sensible deadline for everyone else too.

    CISA's full instruction
    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.
  2. Check whether you're affected

    Find every system running Dd-wrt and compare its version with the affected versions.

  3. Update to a fixed version

    • Update Dd-wrt to 45724 or later.
  4. If you can't update right away

    Apply the workaround or mitigation in the vendor's advisory until you can update:

  5. Check for signs of compromise

    Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.

  6. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

Affected productsVersions
DD-WRT Dd-wrt< 45724

Weakness

  • CWE-121 stack-based buffer overflow

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. Last modified:

Frequently asked questions

Is CVE-2021-27137 being exploited?

Yes. CISA added CVE-2021-27137 to its Known Exploited Vulnerabilities catalog on 21 Jul 2026, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 4.0% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2021-27137?

CVE-2021-27137 has a CVSS 3.1 base score of 8.1 (high).

Which versions are affected?

DD Wrt Dd-wrt (< 45724)

Is there a patch for CVE-2021-27137?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.