Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

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

Published Jul 16, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.1High · v3.1
EPSS4.0%91st percentile
CISA KEVYesAdded Jul 21, 2026
In the wildActivePer CISA KEV
Vendor
Dd-Wrt
IdentifiersCVE-2021-27137CWE-121 · Stack-based Buffer Overflow

CVE-2021-27137 is a stack-based buffer overflow in DD-WRT builds before 45724. The UPnP SSDP M-SEARCH handling path, specifically ssdp_msearch, uses an unsafe strcpy operation to copy attacker-controlled request data into an internal fixed-size buffer. An unauthenticated remote attacker can send a specially crafted SSDP M-SEARCH request to overflow the buffer when UPnP is enabled.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can corrupt process memory, causing denial of service and potentially enabling arbitrary code execution with the privileges of the vulnerable DD-WRT UPnP service. Active exploitation has been observed for malware deployment and enrollment of affected routers into botnets.

Mitigation

If you can’t patch tonight, do this now.

Disable UPnP where it is not operationally required. Until patching is complete, restrict SSDP/UPnP M-SEARCH traffic to trusted internal networks, prevent exposure of the UPnP service to untrusted networks, and monitor for anomalous SSDP M-SEARCH activity and unexpected router process behavior.

Remediation

Patch, then assume compromise.

Upgrade DD-WRT to build 45724 or later, which replaces the vulnerable behavior. Verify that deployed router firmware incorporates the fix and replace devices that cannot be upgraded to a fixed build.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Dd-WrtDd-Wrtapplication
FAQ

Frequently asked questions

Is CVE-2021-27137 exploited in the wild?
Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 21, 2026.
Is there a public exploit for CVE-2021-27137?
Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2021-27137.
Is there a patch for CVE-2021-27137?
Upgrade DD-WRT to build 45724 or later, which replaces the vulnerable behavior. Verify that deployed router firmware incorporates the fix and replace devices that cannot be upgraded to a fixed build.
What products are affected by CVE-2021-27137?
Dd-Wrt.
How severe is CVE-2021-27137?
CVE-2021-27137 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 4.0% (91st percentile) as of Sep 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware21Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity31Community discussion across Reddit, Mastodon, and other social sources.