Patchfirst
CVE-2021-27137 KEVPublic exploit High · 8.1 EPSS 4.0%

DD-WRT Stack-Based Buffer Overflow Vulnerability

DD-WRT · DD-WRT

Summary

DD-WRT contains a stack-based buffer overflow in the UPnP handling code (router/upnp/src/ssdp.c) before version 45724, where an unsafe strcpy in the ssdp_msearch function can be overflowed by a crafted M-SEARCH request. An unauthenticated remote attacker can trigger it without user interaction, but only if the UPnP service has been enabled by the user, which is off by default and listens only on internal interfaces by default.

Official description · NVD

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

Breakdown
71.8 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

First seen exploited 43 days before it was disclosed.

  1. First seen exploitedVulnCheck KEV evidence43 days before
  2. Disclosedday 0
  3. Added to CISA KEVEU database agrees+5 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

1 , grouped by in kill-chain order, 2 cited passages 1

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

Unauthenticated remote request to exposed UPnP service

An unsafe strcpy in the UPnP handling functionality allows an unauthenticated remote attacker
From the official description (NVD) Original (opens in a new tab) ↗
Lower-confidence links (1)

These come from early or generic mappings, text matching, or contradict this CVE’s details (for example a public-facing technique on a bug that needs a user to open a file). Shown for completeness.

  • Exploitation for Client ExecutionT1203 server-side bug exploitable without user interaction; client-execution technique does not fit

Detection

0 rules for this CVE · 149 general rules for its techniques

Rules for this CVE

0 that reference CVE-2021-27137 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 35 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

6 links, grouped by NVD tag (1 duplicate merged)
↑ ↓ chooseEnter openEsc close