CVE-2024-0297 Totolink N200RE cstecgi.cgi UploadFirmwareFile os command injection
Remote attackers can execute arbitrary OS commands via the firmware upload function in Totolink N200RE routers.
- 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-2024-0297?
CVE-2024-0297 is a high-severity command injection vulnerability in Totolink N200RE, published on 8 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability was found in Totolink N200RE 9.3.5u.6139_B20201216 and classified as critical. This issue affects the function UploadFirmwareFile of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument FileName leads to os command injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-249863. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.
Weakness: CWE-78
Which versions are affected by CVE-2024-0297?
It affects 1 product.
Products include Totolink N200re Firmware.
How do I fix CVE-2024-0297?
No fix has been published for CVE-2024-0297 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-0297 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0297 exists.
Other vulnerabilities in Totolink N200RE
- CVE-2024-0296 Totolink N200RE cstecgi.cgi NTPSyncWithHost os command injection
- CVE-2024-0298 Totolink N200RE cstecgi.cgi setDiagnosisCfg os command injection
- CVE-2024-0299 Totolink N200RE cstecgi.cgi setTracerouteCfg os command injection
- CVE-2024-0997 Totolink N200RE cstecgi.cgi setOpModeCfg stack-based overflow
- CVE-2024-0998 Totolink N200RE cstecgi.cgi setDiagnosisCfg stack-based overflow
Sources
Also known as GHSA-m8hm-22wv-cf8j.