Skip to content
CVE-2026-133993

D-Link DIR-600L GENA gena.cgi Stack Buffer Overflow (CVE-2026-133993)

Initial Access Lateral Movement Last updated:

Detects exploitation attempts against a stack-based buffer overflow in the FUN_0040efb0 function of gena.cgi (GENA Subscription Handler) on D-Link DIR-600L 2.17b02 routers (CVE-2026-133993, CVSS 9.3, CWE-119/CWE-121). A remote, unauthenticated attacker can manipulate the service argument to corrupt the stack. The exploit has been released to the public. Detection logic focuses on inbound HTTP SUBSCRIBE requests to /gena.cgi (or UPnP service control URLs) carrying abnormally long Callback/NT/SID header values, oversized request lines, and anomalous UPnP control traffic from untrusted sources. Detection is proactive and perimeter/network-telemetry oriented since embedded SOHO firmware rarely emits host logs.

Based on D-Link DIR-600L gena.cgi stack overflow review

Vulnerability Intelligence

Theoretical

What is CVE-2026-133993 D-Link DIR-600L GENA gena.cgi Stack Buffer Overflow (CVE-2026-133993)?

D-Link DIR-600L GENA gena.cgi Stack Buffer Overflow (CVE-2026-133993) (CVE-2026-133993) maps to the Initial Access and Lateral Movement tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for D-Link DIR-600L GENA gena.cgi Stack Buffer Overflow (CVE-2026-133993), covering the data sources and telemetry it touches: Network IDS/IPS, Web Proxy / Firewall HTTP logs, Zeek/Corelight HTTP. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Lateral Movement
Microsoft Sentinel / Defender
kusto
// df00tech DF00-c7d42a629d · https://df00tech.com/detections/CVE-2026-133993 · licence: https://df00tech.com/detections/licence
// Microsoft Sentinel - inbound HTTP SUBSCRIBE to gena.cgi with oversized GENA headers
let maxHeaderLen = 512;
CommonSecurityLog
| where DeviceVendor in~ ("Zeek", "Corelight", "Palo Alto Networks", "Fortinet") or isnotempty(RequestURL)
| where RequestMethod =~ "SUBSCRIBE" or AdditionalExtensions has "SUBSCRIBE"
| where RequestURL has "gena.cgi" or RequestURL has "/upnp" or RequestURL has "/gena"
| extend CallbackHdr = tostring(extract(@"(?i)Callback:\s*([^\r\n]+)", 1, AdditionalExtensions))
| extend NtHdr = tostring(extract(@"(?i)\bNT:\s*([^\r\n]+)", 1, AdditionalExtensions))
| extend SidHdr = tostring(extract(@"(?i)\bSID:\s*([^\r\n]+)", 1, AdditionalExtensions))
| where strlen(CallbackHdr) > maxHeaderLen or strlen(NtHdr) > maxHeaderLen or strlen(SidHdr) > maxHeaderLen or strlen(RequestURL) > 1024
| project TimeGenerated, SourceIP, DestinationIP, DestinationPort, RequestMethod, RequestURL, CallbackLen=strlen(CallbackHdr), NtLen=strlen(NtHdr), SidLen=strlen(SidHdr), DeviceVendor
| order by TimeGenerated desc

Flags inbound UPnP GENA SUBSCRIBE requests to gena.cgi carrying Callback/NT/SID headers (or request URLs) that exceed the length a legitimate GENA subscription would ever send, consistent with the stack overflow in FUN_0040efb0.

critical severity medium confidence

Data Sources

Network IDS/IPS Web Proxy / Firewall HTTP logs Zeek/Corelight HTTP

Required Tables

CommonSecurityLog

False Positives

  • Legitimate UPnP control points (media servers, IoT hubs) issuing valid SUBSCRIBE requests with long but benign Callback URLs
  • Network scanners and vulnerability assessment tools performing authorized UPnP probing
  • Proxy or WAF appliances that concatenate headers into AdditionalExtensions causing inflated length measurements

Query fingerprint DF00-c7d42a629d · licence

Sigma logsource & community rules

The detection logic for D-Link DIR-600L GENA gena.cgi Stack Buffer Overflow (CVE-2026-133993) (CVE-2026-133993) 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:


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 further down this page.

  1. Test 1 Oversized UPnP GENA SUBSCRIBE Callback header (lab simulation)

    Expected signal: Network/HTTP telemetry (Zeek, packetbeat, proxy) records a SUBSCRIBE request to /gena.cgi with a Callback header length > 512 bytes.

  2. Test 2 Oversized SUBSCRIBE request URI to UPnP control endpoint

    Expected signal: HTTP request log shows a SUBSCRIBE method with URL/URI length > 1024 bytes to a UPnP control port.

  3. Test 3 Oversized NT/SID header fuzz against gena.cgi

    Expected signal: HTTP telemetry records SUBSCRIBE request with NT and SID header lengths exceeding 512 bytes.


Response Playbook

Triage

  1. Confirm the destination IP/device is a D-Link DIR-600L (or similar UPnP-enabled SOHO router) running firmware 2.17b02 and whether its UPnP/GENA service is reachable from the source network.
  2. Extract and measure the Callback, NT, and SID header values and the request URI from the flagged SUBSCRIBE request; lengths far beyond typical (~100-200 bytes) or containing non-printable/shellcode-like bytes strongly indicate exploitation.
  3. Determine whether the source IP is internal, a known UPnP control point, an authorized scanner, or an untrusted/external host, and review surrounding traffic for repeated or scripted SUBSCRIBE attempts.

Containment

  1. Block inbound UPnP/GENA traffic (typically HTTP SUBSCRIBE to the device's control port) from untrusted sources at the perimeter firewall and disable UPnP exposure on the WAN interface.
  2. Isolate or power-cycle any DIR-600L that shows signs of successful exploitation (unexpected reboots, config changes, new outbound connections) and remove it from the trusted network pending firmware remediation.

Evidence Collection

  1. Capture full packet capture (PCAP) of the offending SUBSCRIBE request(s) including all headers and payload for forensic analysis and to confirm overflow payload content.
  2. Preserve firewall/IDS/proxy logs, device syslog (if forwarded), and any router configuration backups before remediation or reboot.

Escalation Criteria

  • ! Escalate to incident response if the targeted device reboots, exhibits config tampering, or initiates anomalous outbound connections following the SUBSCRIBE request, indicating likely code execution.
  • ! Escalate if the oversized SUBSCRIBE traffic originates from the WAN/internet or is observed against multiple internal routers, indicating active mass exploitation or lateral movement.

Investigation Guide

Forensic Artifacts

  • > Packet captures of inbound SUBSCRIBE requests with oversized Callback/NT/SID headers to the device's UPnP control port.
  • > Firewall/IDS alert records and connection logs showing the source IP, timing, and repetition of GENA requests.
  • > Router crash/reboot indicators or config diffs captured from device management or syslog forwarding.

Tuning Guidance

Baseline the normal length of Callback/NT/SID headers emitted by your legitimate UPnP control points and raise or lower the 512-byte threshold accordingly; many media servers send Callback URLs of 150-300 bytes. Scope the rule to network segments where DIR-600L / SOHO routers actually exist, exclude authorized vulnerability-scanner source IPs, and verify your proxy/IDS does not concatenate multiple headers into one field (which inflates measured length and causes false positives). Because a public exploit exists, prioritize alerting on this rule and plan for blocking once false-positive rates are confirmed acceptable.


Hunting Queries

Hunts for hosts sending abnormally large UPnP GENA SUBSCRIBE requests, surfacing potential overflow attempts against DIR-600L devices even when specific header extraction fails.

Hunting — KQL
kql
// df00tech DF00-c7d42a629d · https://df00tech.com/detections/CVE-2026-133993 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestMethod =~ "SUBSCRIBE" or RequestURL has "gena.cgi" | extend hlen = strlen(AdditionalExtensions) | where hlen > 800 | summarize count(), max(hlen) by SourceIP, DestinationIP | order by max_hlen desc
Hunting — SPL
spl
``` df00tech DF00-c7d42a629d · https://df00tech.com/detections/CVE-2026-133993 · licence: https://df00tech.com/detections/licence ```
index=network (method=SUBSCRIBE OR uri_path="*gena.cgi*") | eval hlen=len(_raw) | where hlen>800 | stats count, max(hlen) as max_hlen by src_ip, dest_ip | sort - max_hlen

Atomic Red Team Tests

Test 1 Oversized UPnP GENA SUBSCRIBE Callback header (lab simulation)
linux

Sends an HTTP SUBSCRIBE request to a lab gena.cgi endpoint with an oversized Callback header to trigger the network detection logic. Use only against an isolated test router or mock server.

Command

bash
python3 -c "import socket; h=socket.gethostbyname('192.168.0.1'); s=socket.socket(); s.connect((h,49152)); p='SUBSCRIBE /gena.cgi HTTP/1.1\r\nHost: 192.168.0.1\r\nCallback: <http://%s>\r\nNT: upnp:event\r\nTimeout: Second-1800\r\n\r\n' % ('A'*1200); s.sendall(p.encode()); print(s.recv(256)); s.close()"

Cleanup

bash
echo 'No persistent artifacts; close any open sockets. Reboot lab router if it hung.'

Expected Telemetry

Network/HTTP telemetry (Zeek, packetbeat, proxy) records a SUBSCRIBE request to /gena.cgi with a Callback header length > 512 bytes.

Expected Detection

KQL/SPL/EQL rules fire on the oversized Callback header length exceeding the 512-byte threshold.

Test 2 Oversized SUBSCRIBE request URI to UPnP control endpoint
linux

Sends a SUBSCRIBE request with an abnormally long URI path to simulate overflow probing against the UPnP handler.

Command

bash
python3 -c "import socket; s=socket.socket(); s.connect(('192.168.0.1',49152)); uri='/gena.cgi?'+('B'*1100); s.sendall(('SUBSCRIBE %s HTTP/1.1\r\nHost: 192.168.0.1\r\nNT: upnp:event\r\n\r\n'%uri).encode()); print(s.recv(256)); s.close()"

Cleanup

bash
echo 'No cleanup required; connection is transient.'

Expected Telemetry

HTTP request log shows a SUBSCRIBE method with URL/URI length > 1024 bytes to a UPnP control port.

Expected Detection

Detections fire on url/uri length exceeding 1024 bytes combined with the SUBSCRIBE method.

Test 3 Oversized NT/SID header fuzz against gena.cgi
linux

Issues a SUBSCRIBE request with oversized NT and SID headers mimicking fuzzing/exploit payloads against FUN_0040efb0.

Command

bash
python3 -c "import socket; s=socket.socket(); s.connect(('192.168.0.1',49152)); p='SUBSCRIBE /gena.cgi HTTP/1.1\r\nHost: 192.168.0.1\r\nSID: uuid:'+('C'*900)+'\r\nNT: '+('D'*600)+'\r\n\r\n'; s.sendall(p.encode()); print(s.recv(256)); s.close()"

Cleanup

bash
echo 'No persistent changes; power-cycle lab device if unresponsive.'

Expected Telemetry

HTTP telemetry records SUBSCRIBE request with NT and SID header lengths exceeding 512 bytes.

Expected Detection

Detections fire on NT or SID header length exceeding the 512-byte threshold.

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections