Skip to content
CVE-2026-138354 Microsoft Sentinel · KQL

Detect Tenda AC6 httpd libCfm.so GetValue Stack Buffer Overflow (CVE-2026-138354) in Microsoft Sentinel

Detects exploitation attempts against a stack-based buffer overflow (CWE-121/CWE-119) in the GetValue function within libCfm.so, invoked by /bin/httpd on the Tenda AC6 router (firmware 15.03.05.19). The flaw affects the Configuration Management component. Attacker-controlled configuration values passed to GetValue are copied into a fixed-size stack buffer without bounds checking, allowing memory corruption. The attack can be executed remotely. NVD states an exploit has been published and may already be in use. Detection focuses on anomalously long parameter values in HTTP requests to the Tenda web management interface (httpd), unexpected httpd process crashes or restarts, and post-exploitation command execution from the httpd process context.

MITRE ATT&CK

Tactic
Initial Access Execution Impact

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-0315ac7def · https://df00tech.com/detections/CVE-2026-138354 · licence: https://df00tech.com/detections/licence
let longValueThreshold = 512;
let tendaUA = dynamic(["httpd", "Tenda"]);
CommonSecurityLog
| where DeviceVendor in~ ("Tenda", "Fortinet", "PaloAltoNetworks") or isempty(DeviceVendor)
| where RequestURL has_any ("/goform/", "/cgi-bin/", "GetValue", "Configuration")
| extend QueryLen = strlen(RequestURL) + strlen(tostring(AdditionalExtensions))
| where QueryLen > longValueThreshold
| extend SuspiciousBytes = countof(RequestURL, "%")
| where SuspiciousBytes > 20 or RequestURL matches regex @"[A-Za-z0-9+/]{400,}"
| project TimeGenerated, SourceIP, DestinationIP, RequestURL, QueryLen, SuspiciousBytes, RequestMethod
| sort by QueryLen desc
critical severity medium confidence

Flags oversized HTTP requests to Tenda httpd configuration/goform endpoints indicative of a GetValue stack overflow attempt, based on abnormal URL/parameter length and high percent-encoding density.

Data Sources

Network Firewall LogsWeb ProxyIDS/IPS

Required Tables

CommonSecurityLog

False Positives & Tuning

  • Legitimate bulk configuration imports or firmware backup/restore operations that produce large request bodies.
  • Security scanners and vulnerability assessment tools fuzzing the management interface during authorized testing.
  • Network monitoring tools that URL-encode large payloads for health checks.

Other platforms for CVE-2026-138354


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 GetValue parameter against Tenda goform endpoint (lab)

    Expected signal: Firewall/proxy log entry showing a POST to /goform/Configuration with request length > 2000 bytes; possible httpd crash in router syslog.

  2. Test 2 High-density percent-encoded overflow payload (lab)

    Expected signal: Proxy/IDS log with high percent-encoding count (>20) and large body for a request to the Tenda management interface.

  3. Test 3 httpd crash simulation via repeated oversized requests (lab)

    Expected signal: Multiple oversized requests from one source within a short window; httpd segfault/watchdog reboot entries in device syslog.


Response Playbook

Triage

  1. Confirm the destination IP is a Tenda AC6 router running firmware 15.03.05.19 (or related AC6 builds) exposing /bin/httpd on the LAN/WAN management interface.
  2. Extract the full offending request URL/body and measure the length of each parameter passed to configuration (GetValue) endpoints; compare against normal baselines for the device.
  3. Check whether the httpd process on the device crashed, restarted, or produced a watchdog reboot around the request timestamp.
  4. Determine whether the source IP is internal (trusted admin), a known scanner, or an external/untrusted host, WAN-side management exposure materially raises severity.

Containment

  1. Block the source IP at the perimeter and disable WAN-side access to the router's web management interface (port 80/8080).
  2. Isolate the affected router from untrusted networks and, if compromise is suspected, take it offline pending firmware verification.
  3. Apply vendor firmware updates when available; until then restrict management access to a dedicated admin VLAN with ACLs.

Evidence Collection

  1. Capture full packet capture (PCAP) of the suspicious HTTP session including the oversized payload for offline analysis.
  2. Export router syslog/crash logs and, if accessible, the httpd core dump or watchdog reboot records for forensic review.
  3. Preserve firewall/proxy/IDS logs correlating source IP, timestamps, and request characteristics.

Escalation Criteria

  • !Escalate to incident response if httpd crashes coincide with the oversized requests, indicating successful memory corruption.
  • !Escalate if the router exhibits post-exploitation behavior (new outbound connections, DNS changes, unexpected config modifications, or new admin sessions) following the request.
  • !Escalate immediately if the management interface was reachable from the WAN and the source IP is external.

Investigation Guide

Forensic Artifacts

  • >httpd process crash/core dump and watchdog reboot records on the device.
  • >Router syslog entries showing malformed configuration requests or segmentation faults in libCfm.so.
  • >Firewall/proxy logs capturing the oversized request URL and source IP.

Tuning Guidance

Baseline the normal maximum URL/parameter length for your Tenda management traffic and adjust the 512-byte threshold accordingly. Embedded web UIs sometimes legitimately pass long encoded config blobs. Whitelist authorized admin workstations and known vulnerability scanners by source IP to reduce noise. Where device-side syslog is available, prioritize alerts that correlate oversized requests with httpd crashes, which are far higher fidelity than request length alone.


Hunting Queries

Hunts for sources sending abnormally long requests to Tenda configuration endpoints over time, surfacing scanning or iterative exploitation.

Hunting — KQL
kql
// df00tech DF00-0315ac7def · https://df00tech.com/detections/CVE-2026-138354 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has_any ("goform","Configuration","GetValue") | extend L=strlen(RequestURL) | summarize max(L), count() by SourceIP, bin(TimeGenerated, 1h) | where max_L > 512
Hunting — SPL
spl
``` df00tech DF00-0315ac7def · https://df00tech.com/detections/CVE-2026-138354 · licence: https://df00tech.com/detections/licence ```
index=network (url=*goform* OR url=*Configuration* OR url=*GetValue*) | eval L=len(url) | stats max(L) as maxlen count by src_ip | where maxlen>512

Atomic Red Team Tests

Test 1 Oversized GetValue parameter against Tenda goform endpoint (lab)
linux

Sends an HTTP request with an overlong value to a configuration goform endpoint to simulate the stack buffer overflow trigger against a lab Tenda AC6 or emulated httpd.

Command

bash
python3 -c "import urllib.request,urllib.parse; d=urllib.parse.urlencode({'GetValue':'A'*2048}).encode(); urllib.request.urlopen('http://192.168.0.1/goform/Configuration', data=d, timeout=5)"

Cleanup

bash
echo 'No persistent artifacts created by request; reboot lab router to clear any crash state: reboot'

Expected Telemetry

Firewall/proxy log entry showing a POST to /goform/Configuration with request length > 2000 bytes; possible httpd crash in router syslog.

Expected Detection

KQL/SPL oversized-request rules fire on the long GetValue parameter exceeding the 512-byte threshold.

Test 2 High-density percent-encoded overflow payload (lab)
linux

Delivers a heavily percent-encoded oversized payload to the configuration endpoint to exercise the encoding-density heuristic branch of the detection.

Command

bash
curl -s -m 5 'http://192.168.0.1/goform/Configuration' --data "GetValue=$(python3 -c "print('%41'*600)")"  || true

Cleanup

bash
echo 'Stateless HTTP test, no cleanup required'

Expected Telemetry

Proxy/IDS log with high percent-encoding count (>20) and large body for a request to the Tenda management interface.

Expected Detection

Detection fires on the encoding-density / base64-like regex branch in addition to length.

Test 3 httpd crash simulation via repeated oversized requests (lab)
linux

Iteratively sends oversized configuration requests to induce and observe an httpd crash/restart on an emulated Tenda firmware under QEMU.

Command

bash
for i in $(seq 1 20); do curl -s -m 3 'http://192.168.0.1/goform/Configuration' --data "GetValue=$(python3 -c 'print("B"*4096)')" || true; done

Cleanup

bash
echo 'Restart emulated firmware/httpd: pkill httpd; /bin/httpd &'

Expected Telemetry

Multiple oversized requests from one source within a short window; httpd segfault/watchdog reboot entries in device syslog.

Expected Detection

Hunting query correlating repeated oversized requests per source with crash events flags the host.

Related Detections