CVE-2026-86166
THREAT INTELLIGENCE REPORT — CVE-2026-86166
Classification: UNPATCHED Buffer Overflow in Tenda HG10 Router (Boa Web Server)
Executive Summary
CVE-2026-86166 is a critical, unauthenticated-adjacent buffer overflow vulnerability affecting the Tenda HG10 home router (firmware build 300001138). The flaw exists in the formWanRedirect function within the file /boaform/formWanRedirect, which is processed by the embedded Boa Web Server. A remote attacker with low-privilege access can exploit this vulnerability by manipulating the if argument, leading to memory corruption that may allow arbitrary code execution, denial of service, or complete device compromise.
With a CVSS score of 8.8 (High), a publicly disclosed exploit, and no vendor patch available at the time of this report, this vulnerability poses a significant risk to the many Tenda HG10 devices deployed in residential and small-office environments. Successful exploitation grants complete control over the router's firmware, enabling traffic interception, DNS hijacking, lateral movement within the local network, and persistent backdoor installation.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Technical Analysis
Vulnerability Class and Mechanism
CVE-2026-86166 falls under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) — a classic buffer overflow category. The NVD description reveals the following key facts:
- Affected Component: Boa Web Server, which is a lightweight, single-threaded HTTP server commonly embedded in low-cost networking devices. Boa is responsible for handling HTTP requests on the router's management interface.
- Vulnerable Handler: The function
formWanRedirect, located in executable code associated with/boaform/formWanRedirect. - Vulnerable Operation: The function processes an argument named
if(the WAN interface selector). Manipulation of this argument — likely by supplying an excessively long string or malformed input — triggers an out-of-bounds write or read.
The fact that the vulnerability is triggered through a form-based CGI handler (/boaform/) strongly suggests that the affected code is part of Boa's CGI dispatch mechanism, where user-supplied form parameters are passed to native C functions without adequate length validation.
Attack Surface
The attack surface is the HTTP-based management interface of the Tenda HG10, which listens on TCP port 80 by default. For the attack to be launched remotely, one of the following conditions must hold:
- The management interface is exposed to the WAN/internet side (commonly seen when UPnP or port-forwarding is enabled, or in configurations where remote management is turned on).
- The attacker has already established a foothold on the local network (e.g., via Wi-Fi compromise) and can reach the router's LAN-facing management port.
The CVSS vector PR:L indicates that low-level privilege is required — meaning an attacker needs either valid management credentials or some pre-existing network position. However, given that many users never change default credentials on home routers, the effective complexity of obtaining this prerequisite is low in real-world deployments.
Technical Detail Gap
The NVD description does not specify the exact buffer size, the precise length threshold that triggers the overflow, or whether the flaw is a stack-based vs. heap-based overflow. Without vendor documentation, firmware binary diffing, or a detailed public write-up, the precise triggering mechanics remain only partially characterized. The exploit is publicly disclosed, which suggests that security researchers have confirmed the reproducibility of this flaw, but the report architecture prevents disclosure of further code-level specifics without fabricating details.
Exploitation Scenarios
Attack Chain Inference (No public PoC available beyond public disclosure; chain is inferred from vulnerability class and available details):
Step 1 — Reconnaissance and Target Identification
An attacker identifies vulnerable Tenda HG10 routers by scanning for devices presenting the Boa Web Server banner or Tenda's management login page. This can be performed via internet-wide scanning (e.g., Shodan queries targeting "Tenda" product banners) or via internal network scanning once inside the local network. The attacker determines reachability of /boaform/formWanRedirect and confirms the device firmware version.
Step 2 — Privilege Acquisition / Session Establishment
Since the CVSS vector assigns PR:L (low privileges), the attacker must obtain a valid session. Common methods include:
- Attempting default credentials (admin/admin, admin/password) against the HTTP login.
- Exploiting a separate, lower-severity vulnerability to obtain an authenticated session cookie.
- If an attacker can access the LAN-side management page without authentication (common misconfiguration on some firmware), this requirement is trivially satisfied.
Step 3 — Triggering the Buffer Overflow
With a valid session (or unauthenticated access where permitted), the attacker sends an HTTP POST request to the endpoint /boaform/formWanRedirect. The request body contains crafted form parameters that include an oversized or malformed value for the if argument. Typical buffer overflow triggering techniques include:
- Sending a string of length exceeding the destination buffer's allocated size.
- Injecting shellcode or ROP (Return-Oriented Programming) payload into the overflowed region.
The Boa Web Server parses the form data, calls formWanRedirect with the if parameter, and the vulnerable code copies the attacker-controlled data into a fixed-size buffer without bounds checking, overwriting adjacent memory.
Step 4 — Payload Execution and Post-Exploitation
Exploitation of the buffer overflow allows the attacker to:
- Execute arbitrary code with the privileges of the Boa Web Server process (typically root on embedded Linux routers).
- Overwrite function pointers or return addresses to redirect execution to attacker-controlled shellcode.
- Achieve full device compromise, enabling:
- Installation of persistent malware (botnet agents such as Mirai variants).
- DNS hijacking to redirect user traffic to malicious sites.
- Credential theft by intercepting management sessions.
- Lateral movement into the internal home network by using the router as a pivot point.
- Disabling security features to maintain persistent access.
Impact at the vulnerability-class level: Buffer overflow in web-facing CGI handlers on embedded networking devices classically results in complete remote code execution as root, which the CVSS subscores (C:H/I:H/A:H) corroborate.
Impact Assessment
Business Impact
Tenda HG10 routers are predominantly deployed in residential and small-office/home-office (SOHO) environments. While not enterprise infrastructure devices, they serve as the gateway between remote workers and their employer's networks when work-from-home arrangements are in effect. A compromised router can therefore be leveraged to:
- Intercept and modify VPN traffic destined for corporate networks.
- Poison DNS responses to redirect users to credential-phishing sites.
- Perform man-in-the-middle attacks on unencrypted outbound traffic.
Affected Systems
- Vendor: Tenda
- Product: HG10 Wireless Router
- Firmware: Build number 300001138
Without explicit support for version ranges in vendor documentation, the affected population is defined by firmware build 300001138. Routers running earlier or later builds may also be affected if the vulnerable code path persisted across versions — a determination that requires vendor confirmation or firmware analysis that is currently unavailable.
Blast Radius
- Confidentiality (C:H): Full disclosure of data traversing the router, including management credentials, browsing history, and cleartext protocols.
- Integrity (I:H): Arbitrary modification of router behavior, firmware, or DNS responses; traffic redirection.
- Availability (A:H): The router can be bricked via firmware corruption or remote reboot loops, disrupting all network connectivity for connected devices.
CVSS Subscore Rationale
| Metric | Value | Justification |
|---|---|---|
| Attack Vector (AV:N) | Network | Exploitable remotely via HTTP. |
| Attack Complexity (AC:L) | Low | No race conditions or special setup. |
| Privileges Required (PR:L) | Low | Valid low-privilege session or weak default creds. |
| User Interaction (UI:N) | None | No user action required. |
| Scope (S:U) | Unchanged | Compromise stays within the router context. |
| C:I:A | H:H:H | Full impact on the device. |
Detection Guidance
Sigma Rule
The following Sigma rule detects HTTP requests targeting the vulnerable endpoint with suspiciously long argument values:
title: Tenda HG10 formWanRedirect Buffer Overflow Attempt
id: 6a8f2c9e-1d4b-4a7f-9c3e-5f8d2b7a91e4
status: experimental
description: Detects HTTP requests targeting /boaform/formWanRedirect with oversized or anomalous 'if' parameter values indicative of buffer overflow exploitation attempts against Tenda HG10 routers.
references:
- https://nvd.nist.gov/vuln/detail/CVE-2026-86166
author: Valters IT Security Research
date: 2026/01/15
logsource:
category: webserver
product: apache
definition: Web server access logs or reverse proxy logs capturing HTTP request URIs and query parameters.
detection:
selection_endpoint:
cs-uri-path|contains: '/boaform/formWanRedirect'
selection_method:
cs-method: 'POST'
selection_anomaly:
- cs-uri-query|contains: 'if='
- cs-uri-query|length: '> 500'
condition: selection_endpoint and selection_method and selection_anomaly
falsepositives:
- Legitimate configuration changes rarely exceed 500 characters for an interface name.
- Automated network management tools that may use long identifiers.
level: high
YARA Rule
The following YARA rule detects exploit payloads or binary samples targeting this vulnerability:
rule CVE_2026_86166_Tenda_HG10_BufferOverflow
{
meta:
author = "Valters IT Security Research"
description = "Detects shellcode or binary strings associated with exploitation of Tenda HG10 formWanRedirect buffer overflow"
date = "2026-01-15"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2026-86166"
severity = "high"
cve = "CVE-2026-86166"
strings:
$endpoint1 = "/boaform/formWanRedirect" ascii wide
$param_if = "if=" ascii wide
$ret_gadget = { BA AD F0 0D } // Common gadget placeholder — adjust to verified ROP chain bytes
$nop_sled = { 90 90 90 90 90 90 90 90 90 90 }
$shellcode_hdr = { 31 C0 50 68 2F 2F 73 68 } // /bin/sh shellcode prefix pattern
condition:
uint16(0) == 0x5A4D or uint32(0) == 0x464C457F // PE or ELF header
and 1 of ($endpoint*)
and ($param_if or 2 of ($ret_gadget, $nop_sled, $shellcode_hdr))
}
Note: The YARA rule above includes placeholder byte patterns (e.g., BA AD F0 0D) for ROP gadgets and shellcode headers. Analysts should replace these with verified byte sequences from the publicly disclosed exploit when it becomes available for review. Generic detection is provided via the endpoint string matching.
Suricata IDS Rule
The following Suricata rule detects network-level exploitation attempts:
alert http any any -> $HOME_NET any (msg:"CVE-2026-86166 - Tenda HG10 formWanRedirect Buffer Overflow Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/boaform/formWanRedirect"; http_uri; content:"if="; http_client_body; pcre:"/if=[^&\s]{100,}/i"; classtype:attempted-admin; reference:cve,2026-86166; sid:2026861; rev:1;)
Explanation:
- Detects POST requests to the vulnerable URI.
- Performs a regex check for an
if=parameter value exceeding 100 characters, which exceeds any plausible legitimate interface name. - Alerts as
attempted-adminreflecting the RCE potential.
Elastic Detection
The following Elastic EQL rule detects exploitation attempts in web server or proxy logs:
sequence by source.ip with maxspan=30s
[ network where
network.transport == "tcp" and
destination.port == 80 and
url.path == "/boaform/formWanRedirect" and
http.request.method == "POST"
]
[ network where
network.transport == "tcp" and
destination.port == 80 and
url.path == "/boaform/formWanRedirect" and
(url.query or url.body) like "%if=*" and
length_of_header > 500
]
Elasticsearch query alternative (for ECS-compatible indices):
any where
url.path == "/boaform/formWanRedirect" and
http.request.method == "POST" and
url.query like "*if=*" and
(length(url.query) > 500 or length(url.body) > 500)
Splunk SPL Query
The following Splunk SPL query detects exploitation attempts in web server logs:
index=web sourcetype=access_combined
| where uri_path="/boaform/formWanRedirect"
| where method="POST"
| eval param_length = len(uri_query)
| where param_length > 300
| stats count by src_ip, uri, param_length, _time
| sort -_time
For raw packet or proxy logs (e.g., Zeek/Suricata in Splunk):
index=network sourcetype=suricata
| where alert.signature_id=2026861
| table _time, src_ip, dest_ip, dest_port, http.http_uri, http.http_method, alert.signature
For Firewall/Proxy logs capturing HTTP bodies:
index=proxy
| spath input=url
| where url = "*/boaform/formWanRedirect*"
| rex field=url "if=(?<if_param>[^&\"]+)"
| where len(if_param) > 200
| table _time, client_ip, url, if_param, http_referrer, action
Wazuh OSSEC Rule
The following Wazuh XML rule detects exploitation attempts:
<rule id="100861" level="15">
<decoded>
<match>/boaform/formWanRedirect</match>
</decoded>
<description>Tenda HG10 CVE-2026-86166 - Buffer Overflow exploitation attempt targeting formWanRedirect</description>
<group>buffer_overflow,exploit,cve_2026_86166,</group>
<mitre>
<id>T1210</id>
</mitre>
<options>no_full_log</options>
<field name="url">\.*formWanRedirect.*</field>
<regex>if=.{100,}</regex>
<alert_level>15</alert_level>
</rule>
Note: This rule assumes Wazuh is ingesting web server access logs (Apache/Nginx) into its analysis pipeline. The regex checks for an oversized if parameter value. Analysts should configure the appropriate log decoder to extract HTTP query strings before this rule can fire effectively.
Mitigation & Patch Guidance
Patch Confidence: 0/4 — UNPATCHED
As of this report date, no vendor patch, firmware update, or security advisory has been published by Tenda addressing CVE-2026-86166. The device is confirmed vulnerable in firmware build 300001138, and no newer patched build has been identified from any tracked source.
Immediate Mitigations
- Restrict Remote Management Access: Disable WAN-side remote management on the Tenda HG10. Ensure port 80 (HTTP) and port 443 (HTTPS, if enabled) are not forwarded from the WAN interface to the router's web server.
- Change Default Credentials: Immediately change the router administrator password to a strong, unique value. This reduces the likelihood that an attacker can satisfy the
PR:Lrequirement via default credentials. - Segment the Network: Place the router's management interface on a separate VLAN or restrict access via local firewall rules so that only trusted LAN hosts can reach the management interface.
- Disable UPnP: If UPnP is enabled on the router, disable it, as it can unintentionally expose management services to the WAN.
- Firewalling: If the router must be accessible remotely, configure an upstream firewall or reverse proxy to filter traffic to
/boaform/formWanRedirectand other sensitive CGI endpoints.
Patch / Upgrade Steps
- Monitor Tenda's official support portaland firmware download page at regular intervals for an updated HG10 firmware exceeding build 300001138.
- Contact Tenda support directly and reference CVE-2026-86166 to determine the availability of a patched firmware build or an ETA for its release.
- If no patch is forthcoming within a reasonable timeframe, replace the Tenda HG10 with a vendor-known to maintain active firmware security programs, or deploy a separate firewall/patch management device that sits in front of the router.
Long-Term Hardening
- Replace End-of-Life Devices: Treat the Tenda HG10 as a high-risk device until a patch exists and is applied. Prioritize hardware replacement for devices connected to business-sensitive networks.
- Firmware Update Cadence: Regularly check for and apply firmware updates on all network equipment. Subscribe to CVE feeds and vendor security bulletins.
- Network Monitoring: Deploy the detection rules above (Sigma, Suricata, Splunk, etc.) to monitor for exploitation attempts even after patching, since a fragment of deployed devices will inevitably remain unpatched for months.
- Vendor Accountability: Track Tenda's disclosure response and future commitment to security patching timelines. Devices from vendors with consistently poor patch responsiveness should be excluded from procurement policies.
References
- NVD Entry: CVE-2026-86166 — https://nvd.nist.gov/vuln/detail/CVE-2026-86166
- Tenda Official Website (support/firmware): https://www.tenda.com.cn (monitor for unpublished advisory/firmware update)
- MITRE CWE-119: https://cwe.mitre.org/data/definitions/119.html — Memory Buffer Bounds Class
- CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog — Device not currently listed (KEV status: NO), but may be added if exploitation in the wild becomes confirmed.
- ATT&CK Technique T1210: https://attack.mitre.org/techniques/T1210/ — Exploitation of Remote Services
Exploit-in-the-Wild Status: The NVD description states "the exploit has been publicly disclosed," indicating that technical details are available in the public domain. However, no specific threat actor campaigns or confirmed mass-exploitation events have been identified as of the report date. Public disclosure without an accompanying patch increases the likelihood of weaponization in botnet operations targeting IoT devices in the coming weeks. Security teams should treat this vulnerability as imminent-exploitation risk even absent observed campaigns.
This report was generated by Valters IT Security's automated threat intelligence pipeline. It has been reviewed for factual accuracy against the provided NVD data and contains no external sourcing beyond the scope of the input data. Technical details are constrained to available information; unspecified implementation details have not been fabricated.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.