CVE-2024-7158 TOTOLINK A3100R HTTP POST Request cstecgi.cgi setTelnetCfg command injection

Medium 5.3 Published Updated

Remote attackers can execute arbitrary commands on TOTOLINK A3100R routers via the setTelnetCfg function in cstecgi.cgi.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-7158?

CVE-2024-7158 is a medium-severity command injection vulnerability in TOTOLINK A3100R, published on 28 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was found in TOTOLINK A3100R 4.1.2cu.5050_B20200504. It has been declared as critical. This vulnerability affects the function setTelnetCfg of the file /cgi-bin/cstecgi.cgi of the component HTTP POST Request Handler. The manipulation of the argument telnet_enabled leads to command injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-272572. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-77

Which versions are affected by CVE-2024-7158?

It affects 1 product.

Products include Totolink A3100r Firmware.

How do I fix CVE-2024-7158?

No fix has been published for CVE-2024-7158 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-2024-7158 being exploited?

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

Sources

Also known as GHSA-rpw9-g7f5-hqpv.

Is CVE-2024-7158 in your software?

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

Check your SBOMs for free