// For flags

CVE-2022-43622

D-Link DIR-1935 HNAP_AUTH Stack-based Buffer Overflow Remote Code Execution Vulnerability

Severity Score

8.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-1935 1.03 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of Login requests to the web management portal. When parsing the HNAP_AUTH header, the process does not properly validate 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-16139.

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-1935 routers. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the handling of Login requests to the web management portal. When parsing the HNAP_AUTH header, the process does not properly validate 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.

*Credits: Anonymous
CVSS Scores
Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-10-21 CVE Reserved
  • 2022-11-03 CVE Published
  • 2024-08-03 CVE Updated
  • 2024-09-08 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-121: Stack-based Buffer Overflow
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Dlink
Search vendor "Dlink"
Dir-1935 Firmware
Search vendor "Dlink" for product "Dir-1935 Firmware"
<= 1.02
Search vendor "Dlink" for product "Dir-1935 Firmware" and version " <= 1.02"
-
Affected
in Dlink
Search vendor "Dlink"
Dir-1935
Search vendor "Dlink" for product "Dir-1935"
--
Safe
Dlink
Search vendor "Dlink"
Dir-1935 Firmware
Search vendor "Dlink" for product "Dir-1935 Firmware"
1.03
Search vendor "Dlink" for product "Dir-1935 Firmware" and version "1.03"
b1
Affected
in Dlink
Search vendor "Dlink"
Dir-1935
Search vendor "Dlink" for product "Dir-1935"
--
Safe
Dlink
Search vendor "Dlink"
Dir-1935 Firmware
Search vendor "Dlink" for product "Dir-1935 Firmware"
1.03
Search vendor "Dlink" for product "Dir-1935 Firmware" and version "1.03"
b2
Affected
in Dlink
Search vendor "Dlink"
Dir-1935
Search vendor "Dlink" for product "Dir-1935"
--
Safe