CVE-2026-25857 Tenda G300-F Command Injection via formSetWanDiag

High 8.6 Published Updated

Remote attackers can execute arbitrary commands on Tenda G300-F routers via the WAN diagnostic interface due to insufficient input sanitization.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-25857?

CVE-2026-25857 is a high-severity command injection vulnerability in Shenzhen Tenda Technology Tenda G300-F, published on 7 Feb 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2026-25857?

It affects 1 product.

Products include Tenda G300-F Firmware.

How do I fix CVE-2026-25857?

No fix has been published for CVE-2026-25857 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-25857 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25857 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-m35g-p77j-hqrh.

Is CVE-2026-25857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free