SecurityContext

CVE-2022-0650: TP-Link TL-WR940N - Buffer Overflow

  • Cve: CVE-2022-0650
  • Name: TP-Link TL-WR940N - Buffer Overflow
  • Description: This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link TL-WR940N 3.20.1 Build 200316 Rel.34392n (5553) routers. Authentication is required to exploit this vulnerability. The specific flaw exists within the httpd 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-13993.
  • Impact: Authenticated attackers can execute arbitrary code with root privileges, potentially leading to complete device compromise.
  • Remediation: Update to the latest firmware version provided by TP-Link that addresses this vulnerability.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, privilege_escalation
  • Requirement type: logged_in
  • Requirements: Attacker needs to authenticate to the device
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8
  • Cvss vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00718
  • Epss percentile: 0.54784
  • Assignee: [email protected]
  • Published at: 2023-03-28T19:15:09Z
  • Age in days: 1337
  • Modified at: 2026-06-17T04:21:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-0650
  • 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: hackerone

Cwe

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

References

UrlSourceTags
https://www.zerodayinitiative.com/advisories/ZDI-22-407/nvdThird Party Advisory, VDB Entry

Products

ProductAffectedPlatform boundSourcesUrl
tp-link:tl-wr940n_firmware< 211111yesnvd/v1/products/tp-link/tl-wr940n_firmware

Index

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

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts