CVE-2026-6158 Totolink N300RH upgrade.so setUpgradeUboot os command injection
Remote attackers can execute arbitrary OS commands via the setUpgradeUboot function in Totolink N300RH routers, requiring authentication.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-6158?
CVE-2026-6158 is a medium-severity command injection vulnerability in Totolink N300RH, published on 13 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw has been found in Totolink N300RH 6.1c.1353_B20190305. Affected is the function setUpgradeUboot of the file upgrade.so. This manipulation of the argument FileName causes os command injection. The attack is possible to be carried out remotely. The exploit has been published and may be used.
Which versions are affected by CVE-2026-6158?
How do I fix CVE-2026-6158?
No fix has been published for CVE-2026-6158 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-6158 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6158 exists.
Sources
Also known as GHSA-3cm3-qfjh-c5x9.