CVE-2012-10021 D-Link DIR-605L Captcha Handling Buffer Overflow
Remote unauthenticated attackers can execute arbitrary code with root privileges via a stack-based buffer overflow in the CAPTCHA handling function.
- 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-2012-10021?
CVE-2012-10021 is a critical memory corruption vulnerability in Dlink Dir-605l Firmware, published on 31 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A stack-based buffer overflow vulnerability exists in D-Link DIR-605L Wireless N300 Cloud Router firmware versions 1.12 and 1.13 via the getAuthCode() function. The flaw arises from unsafe usage of sprintf() when processing user-supplied CAPTCHA data via the FILECODE parameter in /goform/formLogin. A remote unauthenticated attacker can exploit this to execute arbitrary code with root privileges on the device.
Weakness: CWE-121
Which versions are affected by CVE-2012-10021?
It affects 1 product.
Products include Dlink Dir-605l Firmware.
How do I fix CVE-2012-10021?
No fix has been published for CVE-2012-10021 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-2012-10021 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-10021 exists.
Public exploit code: 1 Metasploit module.
Other vulnerabilities in Dlink Dir-605l Firmware
Sources
Also known as GHSA-g2h4-mw8p-v523.