CVE-2026-144939 — Tenda AC5 (03.03.14.11) — CWE-119 · CWE-121
A vulnerability was found in Tenda AC5 03.03.14.11. Affected by this vulnerability is the function app_set_ucloud_info_clear_account of the component ucloud. Performing a manipulation of the argument ucloud_need_clear_acc results in stack-based buffer overflow. The attack requires a local approach. The exploit has been made public and could be used.
A vulnerability was found in Tenda AC5 03.03.14.11. Affected by this vulnerability is the function app_set_ucloud_info_clear_account of the component ucloud. Performing a manipulation of the argument ucloud_need_clear_acc results in stack-based buffer overflow. The attack requires a local approach. The exploit has been made public and could be used.
🎯 What is this vulnerability?
This vulnerability is a Stack-Based Buffer Overflow (CWE-121) within the ucloud component of the Tenda AC5 router firmware (version 03.03.14.11).
Technical Flaw Analysis:
The specific function app_set_ucloud_info_clear_account fails to perform adequate bounds checking on the input parameter ucloud_need_clear_acc. In embedded C applications, stack-based overflows occur when a function writes more data to a local variable (buffer) than its allocated size on the stack.
1. Missing Input Validation: The function accepts the ucloud_need_clear_acc argument without verifying its length against the size of the destination buffer.
2. Stack Corruption: When an attacker provides a payload larger than the buffer size, the excess data overwrites adjacent stack memory. This typically includes:
* Local variables.
* The saved frame pointer (EBP/RBP).
* The return address.
3. Control Flow Hijack: By overwriting the return address, an attacker can redirect program execution to arbitrary memory locations. If the attacker can also control the content of the overwritten return address (or use ROP gadgets), they can execute arbitrary shellcode.
CVSS Context:
- AV:L (Local): The attack requires local access. This implies the attacker must already have a foothold on the device (e.g., via a compromised admin account, a physical connection, or a prior vulnerability that grants local shell access).
- PR:L (Low Privileges): The attacker does not need root privileges to trigger the overflow, but must have some level of local access (e.g., a standard user or a service account).
- VC:H/VI:H/VA:H: Successful exploitation leads to complete compromise of the router's confidentiality, integrity, and availability.
- SC:H/SI:H/SA:H: The impact extends to the scope, meaning the compromised router can be used to pivot to other systems on the network or launch attacks against upstream/downstream devices.
- Target Identification: The attacker identifies a Tenda AC5 router running firmware version 03.03.14.11. This can be done via: * Banner grabbing on the web management interface (HTTP/HTTPS). * SNMP queries (if enabled). * Physical inspection of the device label.
- Local Access Acquisition: Since the vulnerability is local (AV:L), the attacker must first gain local access. This could be achieved via: * A compromised admin account (default credentials or brute-forced). * A previous vulnerability that allows arbitrary file upload or command injection. * Physical access to the device (e.g., via USB or serial console, if available). * A compromised client on the local network that can interact with the router's local services.
⚡ Attack Chain
1. Discovery & Reconnaissance
2. Exploitation
The attacker crafts a malicious payload for theucloud_need_clear_acc parameter. The exact endpoint URI is not specified in the CVE description, but it is likely part of the UCloud (Tenda's cloud service) configuration interface.Illustrative PoC (Conceptual):
Note: The following is an illustrative example of how a stack overflow might be triggered. The exact offset and ROP gadgets depend on the specific firmware binary and architecture (likely MIPS or ARM for Tenda routers).
# Illustrative Python script to generate a payload
# This is NOT a working exploit, but a demonstration of the concept.
import struct
# Assume the buffer size is 100 bytes (hypothetical)
# The attacker needs to send a payload larger than 100 bytes to overflow.
# Step 1: Fill the buffer with 'A'
buffer = b'A' * 100
# Step 2: Overwrite the saved EBP (4 bytes on 32-bit MIPS/ARM)
ebp = b'\x41\x41\x41\x41' # 'AAAA'
# Step 3: Overwrite the return address with a ROP gadget or shellcode address
# This address is hypothetical and would need to be found via reverse engineering.
return_addr = struct.pack('<I', 0x00401000) # Example address
# Combine the payload
payload = buffer + ebp + return_addr
# The attacker would send this payload to the vulnerable function.
# For example, via a local API call or a crafted HTTP request if the function is exposed locally.
# curl -X POST http://192.168.0.1/ucloud/set_info \
# -d "ucloud_need_clear_acc=$(python3 -c 'print(payload.decode())')"Key Exploitation Steps:
1. Offset Determination: The attacker determines the exact offset to the return address using a cyclic pattern (e.g., msf-pattern_create).
2. Gadget Hunting: The attacker identifies ROP gadgets or a suitable address for shellcode execution within the router's memory space.
3. Payload Construction: The attacker constructs a payload that overwrites the return address to point to the shellcode or ROP chain.
4. Triggering the Overflow: The attacker invokes the app_set_ucloud_info_clear_account function with the malicious payload. This could be done via:
* A local command-line interface (if available).
* A local API endpoint.
* A crafted HTTP request to the router's web interface (if the function is accessible via HTTP).
3. Post-Exploitation
Once the return address is overwritten and the shellcode is executed, the attacker gains control of the process.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
2. Workarounds
3. Detection
Example ModSecurity Rule (Illustrative):
Note: This rule is illustrative and may need adjustment based on the specific router's behavior.
SecRule ARGS:ucloud_need_clear_acc "@rx ^[A-Za-z0-9]{100,}" \
"id:100001,phase:1,deny,status:403,msg:'Potential stack overflow attempt in ucloud_need_clear_acc',log"⚠️ Urgency
Although the vulnerability requires local access (AV:L), the high impact (CVSS 9.3) and the availability of a public exploit make this a critical risk. Organizations should prioritize patching or mitigating this vulnerability, especially in environments where local access to the router is possible (e.g., physical access, compromised admin accounts, or prior vulnerabilities).
Immediate Actions:
1. Check for a firmware update from Tenda.
2. Disable the UCloud service if not needed.
3. Restrict local access to the router.
4. Monitor for signs of compromise.
[🤖 CVE Professor AI Security Engine]
FOFA Query