{"id":"CVE-2012-10021","published":"2025-07-31T14:54:19Z","modified":"2026-05-14T02:06:05Z","title":"D-Link DIR-605L Captcha Handling Buffer Overflow","vendor":"D-Link","product":"DIR-605L","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05138,"percentile":0.92599,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/dlink_dir605l_captcha_bof.rb","tags":["exploit"]},{"url":"https://web.archive.org/web/20121012062554/http://www.devttys0.com/2012/10/exploiting-a-mips-stack-overflow/","tags":["technical-description","exploit"]},{"url":"https://www.exploit-db.com/exploits/29127","tags":["exploit"]},{"url":"https://forums.dlink.com/index.php?topic=51923.0","tags":[]},{"url":"https://www.vulncheck.com/advisories/dlink-dir605l-captcha-handling-stack-based-buffer-overflow","tags":["third-party-advisory"]}],"priority":{"score":30.0,"factors":[{"name":"EPSS percentile","points":18.52},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.51}]},"exploitSources":{"metasploit":[{"name":"D-Link DIR-605L Captcha Handling Buffer Overflow","module":"exploit/linux/http/dlink_dir605l_captcha_bof","type":"exploit","disclosureDate":"2012-10-08","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/dlink_dir605l_captcha_bof.rb"}],"first":{"date":"2012-10-08","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/dlink_dir605l_captcha_bof.rb"},"provenance":"source"},"vendorSlug":"d-link","affectedVersions":[{"vendor":"D-Link","product":"DIR-605L","versions":[">= 1.12, <= 1.13"]}],"summary":{"text":"A stack-based buffer overflow in the getAuthCode() function of the D-Link DIR-605L Wireless N300 Cloud Router firmware, versions 1.12 and 1.13, arises from unsafe use of sprintf() when processing CAPTCHA data supplied through the FILECODE parameter in /goform/formLogin. A remote attacker with no authentication and no user interaction can exploit it over the network to execute arbitrary code with root privileges on the device.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:27:52Z"},"euvd":{"id":"EUVD-2012-6567","exploited":false,"provenance":"source"},"exploitRefs":["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"]}