Actively exploited vulnerability / CVE-2021-27137
DD-WRT: an attacker can take control of the router through its UPnP feature
A flaw in DD-WRT lets an attacker with no password trigger an error in the router's UPnP feature and run their own code on it. Whoever controls the router can watch or redirect company traffic and reach other devices on the network. The problem only exists if UPnP has been switched on, although it is off by default and only listens on the internal network. It is on the lists of vulnerabilities used in real attacks kept by CISA (the US cybersecurity agency) and by ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2021-27137 · EUVD-2021-34854
- Severity
- High (8.1/10)
- On the CISA list (US)
- yes, since 21 July 2026
- Deadline given to US federal agencies
- 24 July 2026
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 15.7% (FIRST's estimate for the next 30 days)
Does it concern you?
DD-WRT is free software installed on routers in place of the manufacturer's own software. It is typically used by small businesses or tech-minded people who wanted more features from their router.
Open the router's administration page; the DD-WRT version is usually shown in a corner of the page or under the Status section. Versions before build 45724 are affected, and if you do not know who set up the router, ask your IT provider.
Affected products and versions
- DD-WRT
- dd-wrt: before 45724
What to do
Update DD-WRT to build 45724 or later. Until then, check whether UPnP is enabled and turn it off if you do not need it.
Versions that contain the fix: 45724.
The official description
The text below is the description from the public database.
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).
Sources
- CVE Program
- GitHub Advisory Database
- Vendor advisory: svn.dd-wrt.com
- Vendor advisory: cisa.gov
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.