LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

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

RBRecent Breaches Vulnerability Intelligence·Jul 21, 2026
CVSS 8.1 · High⚠ Actively exploited (CISA KEV)
8.1
CVSS score
High
Severity
Active
CISA KEV
No
Ransomware use
Jul 24, 2026
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2021-27137 to its Known Exploited Vulnerabilities catalog on Jul 21, 2026, with a federal patch deadline of Jul 24, 2026 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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

CVE-2021-27137 is a stack-based buffer overflow in DD-WRT firmware that can let an unauthenticated attacker overflow an internal buffer used by UPnP and achieve code execution. For teams running DD-WRT on routers or similar network devices, this matters because successful exploitation can give an attacker control of the device and a foothold on the network it serves.

Public detail is limited to the CISA description and the CWE-121 classification. Confirm exact affected builds, fixed releases, and any configuration prerequisites against the vendor advisory before acting.

How it works

This vulnerability is a stack-based buffer overflow (CWE-121). In this class of flaw, input is written into a fixed-size buffer on the stack without adequate bounds checking. When more data arrives than the buffer can hold, adjacent stack memory can be overwritten.

According to the CISA summary, the overflow targets an internal buffer used by UPnP. An unauthenticated attacker who can reach the vulnerable UPnP handling path may supply crafted input that overflows that buffer and triggers code execution. Specific packet formats, offsets, or exploit sequences are not provided in the given facts; treat any public proof-of-concept material with caution and validate behavior only in controlled lab conditions against the vendor’s description.

Because UPnP is often exposed on LAN interfaces and sometimes on WAN interfaces when misconfigured, the practical attack surface depends on how the device is deployed and whether UPnP is enabled and reachable.

Am I affected? How to find it in your systems

DD-WRT is third-party firmware commonly installed on consumer and small-business routers, access points, and similar embedded network gear. Inventory every device that might be running DD-WRT, including lab, branch, and home-office equipment that connects to corporate resources.

For exploitation signs, look for unexpected UPnP-related crashes or reboots, anomalous processes or listening ports on the device after a UPnP interaction, and unusual outbound connections originating from the router itself. Embedded devices often have limited logging; forward syslog if available and correlate with network IDS/IPS alerts for malformed or high-volume UPnP traffic. Absence of clear logs does not prove non-exploitation.

How to remediate

Patch first. Apply the vendor-supplied update that addresses CVE-2021-27137, following the installation and verification steps in the official DD-WRT advisory. Confirm the post-update firmware string matches a fixed build.

After patching, harden the device for this weakness class:

CISA’s required action directs stakeholders to apply mitigations per vendor instructions, evaluate internet exposure, and follow applicable BOD 26-04 guidance (or discontinue use if mitigations are unavailable). Document compliance for each asset.

If you can't patch immediately

Reduce exposure until you can install the vendor fix:

Reassess residual risk daily and schedule the official patch as soon as operationally feasible. If no adequate mitigation exists for a given deployment, plan to take the device offline or replace it per CISA guidance.

If your data may have been exposed

Actively exploited vulnerabilities on network edge devices can lead to full device compromise, traffic interception, credential theft, and lateral movement. Known ransomware use is not documented for this CVE in the provided facts; still treat confirmed exploitation as a potential incident. Isolate affected devices, preserve available logs and memory if forensics are required, rotate credentials that traversed the device, and follow your incident-response process. You can run a free exposure scan of your email addresses against known breach data to check whether associated accounts appear in public breach corpora while you complete containment and recovery.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedDD-WRT · DD-WRT
WeaknessCWE-121
CVSS base score8.1 (High)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
PublishedJul 16, 2026
Added to CISA KEVJul 21, 2026
Federal patch deadlineJul 24, 2026
Known ransomware useNot documented
Check if your data is exposed →

References

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities