CVE-2026-118238

CVE-2026-118238

Published Oct 30, 2026 CVSS 3.1 · 7.2 High EPSS 1.5% KEV · Not listed
Description
The Tenda W18E web management server is vulnerable to OS command injection via the "diagnose" packet-capture feature due to improper validation of JSON fields. An authenticated user can inject shell metacharacters into the protocol or targetDevice fields, which are later concatenated into a tcpdump command and executed with root privileges. This vulnerability can be exploited without authentication if the device is in a factory-reset state.

Analysis

AI-generated

Technical impact

Tenda W18E routers suffer from a command injection flaw (CWE-78) in the web‑based packet‑capture service. The vulnerable fields – protocol and targetDevice – are concatenated into a tcpdump command without proper sanitization. An authenticated user can inject shell metacharacters, enabling execution of arbitrary commands with root privileges. Even when the device is in a factory‑reset state, lack of authentication allows exploitation, giving an attacker complete control over the router.

Affected Systems

The flaw affects all Tenda W18E models installed with the default or unpatched firmware. No specific version range is listed, so users should assume the issue is present in all current releases until a vendor fix is released.

Risk and Exploitability

The CVSS score is 7.2, but the weakness provides remote attackers the ability to run any code as root. The EPSS score is 2% and the vulnerability is not included in CISA KEV, suggesting limited current exploitation activity. However, because the exploit is triggered via a web interface that may be exposed, the attack vector is likely local network or initial remote if port 80/443 is accessible. The lack of authentication on factory‑reset units further lowers the barrier to compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any publicly available firmware update from Tenda that addresses the packet‑capture command injection flaw.
  • Disable the diagnostic packet‑capture feature in the router’s settings or block the corresponding API endpoints if the firmware lacks a fix.
  • Remove or restrict web management access (HTTP/HTTPS) to trusted IP addresses, or block the management ports altogether as a temporary mitigation.

Generated by OpenCVE AI on October 31, 2026 at 14:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Tenda
Tenda w18e
Vendors & Products Tenda
Tenda w18e
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-20
CWE-78
Type Values Removed Values Added
Description The Tenda W18E web management server is vulnerable to OS command injection via the "diagnose" packet-capture feature due to improper validation of JSON fields. An authenticated user can inject shell metacharacters into the protocol or targetDevice fields, which are later concatenated into a tcpdump command and executed with root privileges. This vulnerability can be exploited without authentication if the device is in a factory-reset state.
Title CVE-2026-118238
References
Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Oct 30, 2026, 5:07 PM
Reserved
Oct 27, 2026, 7:49 PM
Status
Deferred
Published
Oct 30, 2026, 4:17 PM
Modified
Oct 30, 2026, 5:17 PM