Skip to content
Server Security Center
KEVhigh8.1

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

DD-WRT · listed in the CISA catalog of actively exploited vulnerabilities since 2026-07-21.

CVSS v3.1 (CVE record)
8.1
high
EPSS (exploit probability, 30 days)
4.0%
higher than 90.7% of all CVEs
Added to CISA KEV
2026-07-21
US federal due date 2026-07-24
Automatable (CISA SSVC)
no
technical impact: total

CVE-2021-27137 explained

CVE-2021-27137 is a stack-based buffer overflow in the UPnP handling code (ssdp_msearch in router/upnp/src/ssdp.c) of DD-WRT before 45724. An unsafe strcpy lets an unauthenticated remote attacker overflow an internal fixed buffer. CISA lists it as known to be exploited, so routers running affected builds with UPnP enabled need prompt attention.

Impact

An unauthenticated attacker who can reach the UPnP service can send a crafted request that overflows a fixed stack buffer. Confidentiality, integrity and availability impact are all rated high. CISA assesses the technical impact as total control of the affected component. Attack complexity is high and CISA rates it not automatable. Exploitation requires UPnP to be enabled. UPnP is off by default and listens only on internal interfaces by default.

Who is affected

DD-WRT versions before 45724 (< 45724) are affected, according to the CVE record published by its CNA (mitre). The fix is in DD-WRT 45724. Only devices with UPnP enabled are exposed. UPnP is disabled by default and, when enabled, listens only on internal interfaces by default.

Written with AI from the data on this page and checked against it automatically.

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

CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk guidance and CISA’s “Forensics Triage Requirements”. 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.

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • DD-WRT
    Affected
    • < 45724
    Fixed in
    • 45724

How to fix it

  • Update to a fixed version: 45724.
  • CISA's deadline for US federal agencies: 2026-07-24 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Update DD-WRT to build 45724 or later on all routers.
  2. Until updated, disable UPnP unless it is required.
  3. If UPnP must stay enabled, ensure it listens only on internal interfaces and is not reachable from the internet.
  4. Follow CISA's required action, and discontinue use of the product if mitigations are unavailable.
  5. Check affected routers for signs of compromise, such as unexpected configuration changes, reboots or unknown processes.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-121 Stack-based Buffer Overflow

Questions about CVE-2021-27137

Is my router vulnerable if UPnP is disabled?
According to the description, exploitation requires the DD-WRT user to enable UPnP. UPnP is off by default. Routers with UPnP disabled are not exposed through this flaw, but you should still update to 45724 or later.
Is this vulnerability being exploited?
Yes. CISA added CVE-2021-27137 to its Known Exploited Vulnerabilities catalog on 2026-07-21, with a US federal due date of 2026-07-24. Whether it is used in ransomware campaigns is unknown.
Which version fixes the issue?
The CVE record names DD-WRT 45724 as the fixed version. All versions before 45724 are affected.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.