CVE-2021-34861: D-Link DAP-2020 - Buffer Overflow
- Cve: CVE-2021-34861
- Name: D-Link DAP-2020 - Buffer Overflow
- Description: This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DAP-2020 1.01rc001 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the webproc endpoint, which listens on TCP port 80 by default. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-12104.
- Impact: Attackers can execute arbitrary code with root privileges, potentially leading to complete device compromise.
- Remediation: Update to the latest firmware version provided by D-Link that addresses this vulnerability.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00821
- Epss percentile: 0.58042
- Assignee: [email protected]
- Published at: 2021-10-25T17:15:08Z
- Age in days: 1856
- Modified at: 2026-06-17T03:56:41Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-34861
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-121 | Stack-based Buffer Overflow |
References
| Url | Source | Tags |
|---|---|---|
| https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10201 | nvd | Patch, Vendor Advisory |
| https://www.zerodayinitiative.com/advisories/ZDI-21-977/ | nvd | Third Party Advisory, VDB Entry |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dlink:dap-2020_firmware | <= 1.01 | yes | nvd | /v1/products/dlink/dap-2020_firmware |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts