cbcvebase.
CVE-2021-27137
published 2026-07-16

CVE-2021-27137: 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…

PriorityP189high8.1CVSS 3.1
AVNACHPRNUINSUCHIHAH
KEVITW
CISA Known Exploited Vulnerabilitydue 2026-07-24
Exploited in the wild
EPSS
16.49%
96.7th percentile
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).

Affected

1 ranges
VendorProductVersion rangeFixed in
dd-wrtdd-wrt< 4572445724

Detection & IOCsextracted from sources · hover to see the quote

port1900/udp
snort
alert udp any any -> $HOME_NET 1900 (msg:"ET EXPLOIT DD-WRT UPNP Unauthenticated Buffer Overflow (CVE-2021-27137)"; content:"M-SEARCH|20|"; startswith; content:"|0d 0a|ST|3a|"; nocase; fast_pattern; content:"uuid|3a|"; within:6; pcre:"/^[^\r\n]{128,}\r\n/R"; reference:url,ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/; reference:cve,2021-27137; classtype:attempted-admin; sid:2032326; rev:2; metadata:attack_target Networking_Equipment, created_at 2021_03_25, cve CVE_2021_27137, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
  • Exploit targets DD-WRT UPnP service on UDP port 1900 via an oversized ST header field in an M-SEARCH request (≥128 chars before CRLF) containing a 'uuid:' value — match the Snort/ET rule pattern: M-SEARCH, ST:, uuid: with pcre for long line.
  • C0XMO establishes persistence via cron jobs relaunching every 15 minutes and modifies shell startup files — hunt for cron entries and shell profile modifications referencing '.sys' hidden binaries.
  • C0XMO uses a custom multi-stage C2 handshake with magic strings and shared secrets — anomalous outbound TCP sessions from IoT/router devices with non-standard handshake patterns should be investigated.
  • Scanner probes common ports 22, 23, 80, 443, 7547, 8080, 8443, 8888 — high-rate outbound scanning to these ports from a router/IoT device is a strong indicator of C0XMO lateral movement activity.
  • ·The C2 IP address is described as 'hardcoded' but is not disclosed in the available source material — no specific C2 IP/domain IOC could be extracted.
  • ·The Snort rule (ET sid:2032326) targets inbound UPnP traffic to $HOME_NET — ensure UPnP (UDP/1900) is monitored on both perimeter and internal segments as specified in the rule metadata.

CVSS provenance

nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
cisa8.1HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.