CVE-2026-25857

Tenda G300-F Command Injection via formSetWanDiag

Published Feb 7, 2026 CVSS 4.0 · 8.6 High EPSS 3.1% KEV · Not listed
Description
Tenda G300-F router firmware version 16.01.14.2 and prior contain an OS command injection vulnerability in the WAN diagnostic functionality (formSetWanDiag). The implementation constructs a shell command that invokes curl and incorporates attacker-controlled input into the command line without adequate neutralization. As a result, a remote attacker with access to the affected management interface can inject additional shell syntax and execute arbitrary commands on the device with the privileges of the management process.

Analysis

AI-generated

Technical impact

The Tenda G300‑F routers running firmware version 16.01.14.2 and earlier have a command injection flaw in the formSetWanDiag WAN diagnostic functionality. When a user submits the form, the firmware builds a shell command that calls curl and embeds attacker-controlled data without proper sanitization. This allows a remote attacker who can reach the router’s web‑based management interface to inject arbitrary shell syntax and execute commands with the privileges of the device’s management process. The weakness corresponds to CWE‑78.

Affected Systems

The vulnerability affects Shenzhen Tenda Technology Tenda G300‑F routers with firmware version 16.01.14.2 and earlier. Only the Tenda G300‑F device is listed in the vendor/product information; no other Tenda models are provided.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity, while the EPSS score of 3 % indicates a low current exploitation probability. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is remote access to the router’s management interface; an attacker who can reach the web-based interface can supply malicious input, and does not need additional privileges beyond that interval. Successful exploitation would grant the attacker arbitrary command execution on the device with elevated privileges, potentially compromising the entire device and any devices it serves.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the router firmware to a version that removes the vulnerable formSetWanDiag handler
  • Restrict access to the management interface by enabling HTTPS, disabling HTTP, or limiting IP ranges
  • Disable WAN diagnostic features that are not needed and monitor logs for any anomalous activity

Generated by OpenCVE AI on June 18, 2026 at 11:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Tenda g300-f Firmware
CPEs cpe:2.3:h:tenda:g300-f:1.0:*:*:*:*:*:*:*
cpe:2.3:o:tenda:g300-f_firmware:*:*:*:*:*:*:*:*
Vendors & Products Tenda g300-f Firmware
Metrics cvssV3_1

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

Type Values Removed Values Added
First Time appeared Tenda rx9 Pro Firmware
CPEs cpe:2.3:o:tenda:rx9_pro_firmware:*:*:*:*:*:*:*:*
Vendors & Products Tenda rx9 Pro Firmware
Type Values Removed Values Added
Description Tenda G300-F router firmware versio 16.01.14.2 and prior contain an OS command injection vulnerability in the WAN diagnostic functionality (formSetWanDiag). The implementation constructs a shell command that invokes curl and incorporates attacker-controlled input into the command line without adequate neutralization. As a result, a remote attacker with access to the affected management interface can inject additional shell syntax and execute arbitrary commands on the device with the privileges of the management process. Tenda G300-F router firmware version 16.01.14.2 and prior contain an OS command injection vulnerability in the WAN diagnostic functionality (formSetWanDiag). The implementation constructs a shell command that invokes curl and incorporates attacker-controlled input into the command line without adequate neutralization. As a result, a remote attacker with access to the affected management interface can inject additional shell syntax and execute arbitrary commands on the device with the privileges of the management process.
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Tenda
Tenda g300-f
Vendors & Products Tenda
Tenda g300-f
Type Values Removed Values Added
Description Tenda G300-F router firmware versio 16.01.14.2 and prior contain an OS command injection vulnerability in the WAN diagnostic functionality (formSetWanDiag). The implementation constructs a shell command that invokes curl and incorporates attacker-controlled input into the command line without adequate neutralization. As a result, a remote attacker with access to the affected management interface can inject additional shell syntax and execute arbitrary commands on the device with the privileges of the management process.
Title Tenda G300-F Command Injection via formSetWanDiag
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
May 11, 2026, 11:11 PM
Reserved
Feb 6, 2026, 7:12 PM
Status
Analyzed
Published
Feb 7, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:25 AM