Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for CVE-2021-27137.
Upgrade to ProDD-WRT Stack-Based Buffer Overflow Exploitation Attempt (CVE-2021-27137)
Detects exploitation attempts against a stack-based buffer overflow vulnerability (CWE-121) in DD-WRT firmware. The flaw allows an attacker with network access to the DD-WRT web management interface to trigger a stack overflow via crafted HTTP requests, potentially leading to remote code execution or denial of service on the router/embedded device. This CVE is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Detection focuses on abnormal HTTP requests to DD-WRT management interfaces (oversized parameters, malformed CGI requests), unexpected crash/restart of httpd or DD-WRT management processes, and post-exploitation network behavior originating from embedded/IoT network segments.
Vulnerability Intelligence
KEV — Known ExploitedAffected Software
- Vendor
- DD-WRT
- Product
- DD-WRT
Weakness (CWE)
Timeline
- Disclosed
- July 21, 2026
References & Proof of Concept
What is CVE-2021-27137 DD-WRT Stack-Based Buffer Overflow Exploitation Attempt (CVE-2021-27137)?
DD-WRT Stack-Based Buffer Overflow Exploitation Attempt (CVE-2021-27137) (CVE-2021-27137) maps to the Initial Access and Impact and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for DD-WRT Stack-Based Buffer Overflow Exploitation Attempt (CVE-2021-27137), covering the data sources and telemetry it touches: CommonSecurityLog, AzureFirewall, Network Session. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Initial Access Impact Execution
// Requires network/firewall logs ingested via CommonSecurityLog or similar for embedded device traffic
CommonSecurityLog
| where DeviceVendor has "DD-WRT" or DestinationPort in (80, 443, 8080)
| where RequestURL has_any ("cgi-bin", "apply.cgi", "management.asp")
| extend RequestLength = strlen(RequestURL)
| where RequestLength > 2000 or RequestURL matches regex @"(%[0-9A-Fa-f]{2}){100,}"
| summarize RequestCount = count(), SampleRequests = make_set(RequestURL, 5) by SourceIP, DestinationIP, bin(TimeGenerated, 5m)
| where RequestCount >= 3
| project TimeGenerated, SourceIP, DestinationIP, RequestCount, SampleRequests Detects abnormally long or malformed HTTP requests to embedded device web management interfaces consistent with DD-WRT CGI buffer overflow exploitation attempts, using CommonSecurityLog data from perimeter firewalls or WAFs fronting the management interface.
Data Sources
Required Tables
False Positives
- Legitimate long query strings from firmware update or configuration backup tools
- Vulnerability scanners performing authorized security assessments against the same interface
- Proxy/NAT devices rewriting or aggregating URLs resulting in longer strings
Sigma rule & cross-platform mapping
The detection logic for DD-WRT Stack-Based Buffer Overflow Exploitation Attempt (CVE-2021-27137) (CVE-2021-27137) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
category: network_connection
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2021-27137
References (4)
- https://svn.dd-wrt.com/changeset/45724
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
- https://nvd.nist.gov/vuln/detail/CVE-2021-27137
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Oversized CGI Parameter Request
Expected signal: Firewall/proxy log entry showing a GET request to /apply.cgi with a URI length exceeding 2000 characters from the test source IP.
- Test 2Hex-Encoded Payload Simulation
Expected signal: Web/proxy log capturing a request URI containing repeated %41-style percent-encoded sequences exceeding 100 occurrences.
- Test 3Repeated Burst Requests to Management Interface
Expected signal: Four distinct oversized HTTP requests to /cgi-bin/config.exe logged from the same source IP within a 5-minute window.
Unlock playbooks & atomic tests with Pro
Get the full detection package for CVE-2021-27137 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month