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.
Published: 2026-10-30
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Apply Patch
AI Analysis

Impact

Tenda W18E routers suffer from a command injection flaw 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 known EPSS score is unavailable 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.

Generated by OpenCVE AI on October 30, 2026 at 19:08 UTC.

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 30, 2026 at 19:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Tenda
Tenda w18e
Vendors & Products Tenda
Tenda w18e

Fri, 30 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Fri, 30 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 30 Oct 2026 17:30:00 +0000

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'}


Fri, 30 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-78

Fri, 30 Oct 2026 15:30:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-10-30T17:07:06.917Z

Reserved: 2026-10-27T19:49:03.088Z

Link: CVE-2026-118238

cve-icon Vulnrichment

Updated: 2026-10-30T17:06:56.775Z

cve-icon NVD

Status : Deferred

Published: 2026-10-30T16:17:41.993

Modified: 2026-10-30T17:17:15.473

Link: CVE-2026-118238

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T19:30:10Z

Weaknesses
  • CWE-78

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