CVE-2024-1004 Totolink N200RE cstecgi.cgi loginAuth stack-based overflow

High 7.2 Published Updated

Remote attackers can trigger a stack-based buffer overflow in the loginAuth function of Totolink N200RE routers, potentially leading to code execution.

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-2024-1004?

CVE-2024-1004 is a high-severity memory corruption vulnerability in Totolink N200RE, published on 29 Jan 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A vulnerability, which was classified as critical, was found in Totolink N200RE 9.3.5u.6139_B20201216. This affects the function loginAuth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument http_host leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-252273 was assigned to this vulnerability. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-121

Which versions are affected by CVE-2024-1004?

It affects 1 product.

Products include Totolink N200re Firmware.

How do I fix CVE-2024-1004?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-1004 being exploited?

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

Sources

Also known as GHSA-8vhj-m4qr-2chr.

Is CVE-2024-1004 in your software?

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

Check your SBOMs for free