DrayTek Vigor2960 dataflowstatus Stack Buffer Overflow (CVE-2026-132142)
Detects exploitation attempts against a stack-based buffer overflow in the dataflowstatus function of /cgi-bin/mainfunction.cgi on DrayTek Vigor2960 routers running firmware up to 1.5.1.6. The flaw (CWE-119/CWE-121) is triggered by an authenticated request that supplies an overlong value to the vulnerable 'option' parameter handled by dataflowstatus, corrupting the CGI process stack. Confirmed impact is memory corruption, return-address overwrite, and a crash of the CGI process. This detection looks for HTTP(S) requests to mainfunction.cgi referencing the dataflowstatus action with abnormally long parameter values, as well as device-side crash/restart indicators of the CGI handler.
Vulnerability Intelligence
TheoreticalTimeline
- Disclosed
- November 18, 2026
References & Proof of Concept
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.7/Vigor2960_v1.5.1.7.zip
- https://github.com/yikesoftware/DrayTek_Vigor2960_Security_Analysis/tree/main/cases/DRV2960-0024-authenticated-dataflowstatus-option-stack-overflow
- https://vuldb.com/cve/CVE-2026-132142
- https://vuldb.com/submit/1044969
- https://vuldb.com/vuln/439442
- https://vuldb.com/vuln/439442/cti
CVSS
What is CVE-2026-132142 DrayTek Vigor2960 dataflowstatus Stack Buffer Overflow (CVE-2026-132142)?
DrayTek Vigor2960 dataflowstatus Stack Buffer Overflow (CVE-2026-132142) (CVE-2026-132142) maps to the Initial Access and Impact tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for DrayTek Vigor2960 dataflowstatus Stack Buffer Overflow (CVE-2026-132142), covering the data sources and telemetry it touches: Firewall, Web Proxy, Network IDS. 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
// df00tech DF00-423e1649c0 · https://df00tech.com/detections/CVE-2026-132142 · licence: https://df00tech.com/detections/licence
let longThreshold = 512;
let mainfunc = CommonSecurityLog
| where DeviceVendor in~ ("DrayTek", "Zscaler", "Palo Alto Networks", "Fortinet") or isnotempty(RequestURL)
| where RequestURL has "/cgi-bin/mainfunction.cgi"
| where RequestURL has "dataflowstatus" or RequestURL has "option"
| extend OptionLen = strlen(tostring(RequestURL))
| where OptionLen > longThreshold or RequestURL matches regex @"option=[^&]{200,}"
| project TimeGenerated, SourceIP, DestinationIP, RequestURL, RequestMethod=DeviceCustomString1, DeviceVendor, DeviceProduct;
mainfunc Finds requests to DrayTek mainfunction.cgi referencing dataflowstatus/option with excessively long URLs indicative of stack overflow attempts, using firewall/proxy HTTP logs normalized into CommonSecurityLog.
Data Sources
Required Tables
False Positives
- Legitimate administrators invoking the dataflowstatus page with long but benign query strings
- Vulnerability scanners and authorized penetration tests probing mainfunction.cgi
- URL-encoding or logging artifacts that inflate the recorded request length
Query fingerprint DF00-423e1649c0 · licence
Sigma logsource & community rules
The detection logic for DrayTek Vigor2960 dataflowstatus Stack Buffer Overflow (CVE-2026-132142) (CVE-2026-132142) 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-2026-132142
References (4)
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.
- Test 1 Overlong option parameter to dataflowstatus (lab)
Expected signal: Proxy/firewall HTTP log entry with a >2000 character URL to mainfunction.cgi referencing dataflowstatus and option.
- Test 2 POST body overflow variant (lab)
Expected signal: HTTP POST to mainfunction.cgi with a large body containing dataflowstatus and an overlong option parameter.
- Test 3 Benign dataflowstatus request (control)
Expected signal: Short, normal-length HTTP request to mainfunction.cgi dataflowstatus.
Response Playbook
Triage
- Confirm the destination IP is a DrayTek Vigor2960 and check its firmware version; versions up to 1.5.1.6 are vulnerable, 1.5.1.7 is patched.
- Extract the full request to /cgi-bin/mainfunction.cgi and measure the length of the 'option' parameter and other dataflowstatus arguments to confirm an overlong value beyond normal use.
- Determine whether the source authenticated to the device first, since the flaw is authenticated, review session/login logs correlated to the source IP.
- Assess whether the request produced a device crash, reboot, or CGI handler restart immediately afterward.
Containment
- Block the offending source IP at the perimeter and restrict management-interface access to trusted admin networks/VPN only.
- Upgrade affected Vigor2960 devices to firmware 1.5.1.7 or later, or disable WAN-side access to the web management interface until patched.
Evidence Collection
- Preserve proxy/firewall HTTP logs containing the full malicious URL and payload for the dataflowstatus request.
- Capture the device's syslog/crash logs and any core dumps showing CGI process memory corruption or restart.
Escalation Criteria
- ! Escalate to incident response if the device crashed/rebooted following the request or if post-exploitation command execution indicators appear.
- ! Escalate if the exploiting source had valid administrative credentials, indicating credential compromise in addition to the vulnerability.
Investigation Guide
Forensic Artifacts
- >
Web server/CGI access logs on the device referencing mainfunction.cgi dataflowstatus - >
Device syslog entries showing CGI process crash, watchdog reboot, or stack smashing detection - >
Perimeter proxy/firewall records of the overlong request and source IP/session
Tuning Guidance
Baseline the normal maximum length of legitimate option/dataflowstatus parameters in your environment and adjust the 512/200-character thresholds accordingly. Whitelist known admin workstations and authorized scanner IPs. If you only have NetFlow (no URL visibility), pivot to detecting CGI process crashes/reboots on the device via syslog instead.
Hunting Queries
Surfaces sources sending unusually long dataflowstatus requests to DrayTek devices for retrospective hunting.
// df00tech DF00-423e1649c0 · https://df00tech.com/detections/CVE-2026-132142 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "/cgi-bin/mainfunction.cgi" and RequestURL has "dataflowstatus" | extend L=strlen(RequestURL) | summarize max(L), count() by SourceIP | where max_L > 400 ``` df00tech DF00-423e1649c0 · https://df00tech.com/detections/CVE-2026-132142 · licence: https://df00tech.com/detections/licence ```
index=proxy uri_path="*/cgi-bin/mainfunction.cgi*" | eval l=len(coalesce(url,uri_query)) | stats max(l) as maxlen count by src_ip | where maxlen>400 Atomic Red Team Tests
Sends an authenticated request with a very long option value to the dataflowstatus function to trigger the stack overflow in a lab device.
Command
curl -k -s -b "sessionid=LAB_SESSION" "https://vigor2960.lab/cgi-bin/mainfunction.cgi?action=dataflowstatus&option=$(python3 -c 'print("A"*2000)')" Cleanup
echo 'No cleanup required; power-cycle or reboot the lab device if it crashed.' Expected Telemetry
Proxy/firewall HTTP log entry with a >2000 character URL to mainfunction.cgi referencing dataflowstatus and option.
Expected Detection
KQL/SPL rules fire on the overlong option parameter exceeding the length threshold.
Delivers the overlong option value via POST body to test detection coverage of non-query-string delivery.
Command
curl -k -s -b "sessionid=LAB_SESSION" -X POST --data "action=dataflowstatus&option=$(python3 -c 'print("B"*2000)')" "https://vigor2960.lab/cgi-bin/mainfunction.cgi" Cleanup
echo 'Reboot the lab Vigor2960 if the CGI handler crashed.' Expected Telemetry
HTTP POST to mainfunction.cgi with a large body containing dataflowstatus and an overlong option parameter.
Expected Detection
Detection flags the request if POST body/parameter length is logged; otherwise confirms a body-delivery visibility gap for tuning.
Sends a normal, short dataflowstatus request to verify the rule does not fire on legitimate traffic.
Command
curl -k -s -b "sessionid=LAB_SESSION" "https://vigor2960.lab/cgi-bin/mainfunction.cgi?action=dataflowstatus&option=all" Cleanup
echo 'No cleanup required.' Expected Telemetry
Short, normal-length HTTP request to mainfunction.cgi dataflowstatus.
Expected Detection
No alert should be generated, confirming the length threshold suppresses benign use.
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040