CVE-2025-1340 TOTOLINK X18 cstecgi.cgi setPasswordCfg stack-based overflow
Remote attackers can trigger a stack-based buffer overflow in the password configuration handler, potentially leading to arbitrary code execution on TOTOLINK X18 routers.
- 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-2025-1340?
CVE-2025-1340 is a high-severity memory corruption vulnerability in TOTOLINK X18, published on 16 Feb 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A vulnerability classified as critical has been found in TOTOLINK X18 9.1.0cu.2024_B20220329. Affected is the function setPasswordCfg of the file /cgi-bin/cstecgi.cgi. The manipulation as part of String leads to stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Which versions are affected by CVE-2025-1340?
It affects 1 product.
Products include Totolink X18 Firmware.
How do I fix CVE-2025-1340?
No fix has been published for CVE-2025-1340 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-2025-1340 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1340 exists.
Other vulnerabilities in TOTOLINK X18
Sources
Also known as GHSA-2f5r-p45g-vr7g.