Detect Tenda AC6 httpd libCfm.so GetValue Stack Buffer Overflow (CVE-2026-138354) in Splunk
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
SPL Detection Query
``` df00tech DF00-0315ac7def · https://df00tech.com/detections/CVE-2026-138354 · licence: https://df00tech.com/detections/licence ```
index=network (sourcetype="tenda:httpd" OR sourcetype="cisco:asa" OR sourcetype="pan:traffic" OR sourcetype="suricata")
| eval uri=coalesce(url, uri_path, cs_uri_stem)
| where match(uri, "(?i)(goform|cgi-bin|GetValue|Configuration)")
| eval req_len=len(uri)+len(coalesce(form_data,http_content,""))
| where req_len > 512
| eval enc_count=mvcount(split(uri,"%"))
| where enc_count > 20 OR match(uri, "[A-Za-z0-9+/]{400,}")
| table _time src_ip dest_ip uri req_len enc_count http_method
| sort - req_len Identifies oversized requests to the Tenda web management interface targeting configuration endpoints handled by GetValue, surfacing probable stack buffer overflow payloads.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized penetration tests or fuzzing campaigns against the router management plane.
- Legitimate configuration backup/restore generating large request payloads.
- Misparsed binary uploads (e.g., firmware images) traversing the proxy.
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.
- 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.
- 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.
- 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
- 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.
- 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.
- Check whether the httpd process on the device crashed, restarted, or produced a watchdog reboot around the request timestamp.
- 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
- Block the source IP at the perimeter and disable WAN-side access to the router's web management interface (port 80/8080).
- Isolate the affected router from untrusted networks and, if compromise is suspected, take it offline pending firmware verification.
- Apply vendor firmware updates when available; until then restrict management access to a dedicated admin VLAN with ACLs.
Evidence Collection
- Capture full packet capture (PCAP) of the suspicious HTTP session including the oversized payload for offline analysis.
- Export router syslog/crash logs and, if accessible, the httpd core dump or watchdog reboot records for forensic review.
- 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.
// 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 ``` 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
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
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
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.
Delivers a heavily percent-encoded oversized payload to the configuration endpoint to exercise the encoding-density heuristic branch of the detection.
Command
curl -s -m 5 'http://192.168.0.1/goform/Configuration' --data "GetValue=$(python3 -c "print('%41'*600)")" || true Cleanup
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.
Iteratively sends oversized configuration requests to induce and observe an httpd crash/restart on an emulated Tenda firmware under QEMU.
Command
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
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.