// For flags

CVE-2022-41140

D-Link Multiple Routers lighttpd 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 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.

Esta vulnerabilidad permite a atacantes adyacentes a la red ejecutar código arbitrario en instalaciones afectadas de múltiples routers D-Link. No se requiere autenticación para aprovechar esta vulnerabilidad. La falla específica existe dentro del servicio lighttpd, que escucha en el puerto TCP 80 de forma predeterminada. El problema se debe a la falta de una validación adecuada de la longitud de los datos proporcionados por el usuario antes de copiarlos en un búfer basado en pila de longitud fija. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto de la raíz. Era ZDI-CAN-13796.

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.

*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-09-20 CVE Reserved
  • 2022-09-20 CVE Published
  • 2024-07-08 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-121: Stack-based Buffer Overflow
  • CWE-787: Out-of-bounds Write
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-882-us Firmware
Search vendor "Dlink" for product "Dir-882-us Firmware"
<= 1.30b07
Search vendor "Dlink" for product "Dir-882-us Firmware" and version " <= 1.30b07"
-
Affected
in Dlink
Search vendor "Dlink"
Dir-882-us
Search vendor "Dlink" for product "Dir-882-us"
--
Safe
Dlink
Search vendor "Dlink"
Dir-867 Firmware
Search vendor "Dlink" for product "Dir-867 Firmware"
<= 1.30b08
Search vendor "Dlink" for product "Dir-867 Firmware" and version " <= 1.30b08"
-
Affected
in Dlink
Search vendor "Dlink"
Dir-867
Search vendor "Dlink" for product "Dir-867"
--
Safe
Dlink
Search vendor "Dlink"
Dir-878 Firmware
Search vendor "Dlink" for product "Dir-878 Firmware"
<= 1.30b06
Search vendor "Dlink" for product "Dir-878 Firmware" and version " <= 1.30b06"
-
Affected
in Dlink
Search vendor "Dlink"
Dir-878
Search vendor "Dlink" for product "Dir-878"
--
Safe