SecurityContext

CVE-2022-41140: D-Link Routers - Buffer Overflow

  • Cve: CVE-2022-41140
  • Name: D-Link Routers - Buffer Overflow
  • Description: This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of multiple D-Link routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the lighttpd service, 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-13796.
  • 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.01127
  • Epss percentile: 0.67154
  • Assignee: [email protected]
  • Published at: 2023-01-26T18:59:53Z
  • Age in days: 1398
  • Modified at: 2026-06-17T05:02:40Z
  • Patch available: yes
  • References total: 3
  • Products total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-41140
  • Nvd status: modified
  • Checked, none or zero: nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-121Stack-based Buffer Overflow
CWE-787Out-of-bounds Write

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2025-02-27—no

References

UrlSourceTags
https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10291nvdPatch, Vendor Advisory
https://www.zerodayinitiative.com/advisories/ZDI-22-1290/nvdThird Party Advisory, VDB Entry
https://info.greynoise.io/hubfs/resources/GreyNoise-2025-Mass-Internet-Exploitation-Report.pdfvulncheckVulncheck Reported Exploitation

Products

Same in every row:

  • Platform bound: yes
  • Sources: nvd
ProductAffectedUrl
dlink:dir-878_firmware<= 1.30b06/v1/products/dlink/dir-878_firmware
dlink:dir-867_firmware<= 1.30b08/v1/products/dlink/dir-867_firmware
dlink:dir-882-us_firmware<= 1.30b07/v1/products/dlink/dir-882-us_firmware

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Known exploited by: vulncheck
  • Vulncheck known exploited since: 2025-02-27
  • Checked, none or zero: known exploited, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts