# CVE-2012-10021: D-Link DIR-605L Captcha Handling Buffer Overflow

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 08-10-2012)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-07-31 · Modified: 2026-05-14
- Record: https://cvemate.com/vulnerability/CVE-2012-10021 · JSON: https://cvemate.com/vulnerability/CVE-2012-10021/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 19.616%, percentile 97.462%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 4 (reference, exploit-database, metasploit)

## Affected

- d-link dir-605l\_firmware: ≥ 1.12, ≤ 1.13
- dlink dir-605l\_firmware: ≥ 1.12, ≤ 1.13

## References

- <https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/dlink_dir605l_captcha_bof.rb>
- <https://web.archive.org/web/20121012062554/http://www.devttys0.com/2012/10/exploiting-a-mips-stack-overflow/>
- <https://www.exploit-db.com/exploits/29127>
- <https://forums.dlink.com/index.php?topic=51923.0>
- <https://www.vulncheck.com/advisories/dlink-dir605l-captcha-handling-stack-based-buffer-overflow>

---

Data as of 2026-12-05T08:32:56.609Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
