Lucene search

K
cveZdiCVE-2023-41225
HistoryMay 03, 2024 - 3:15 a.m.

CVE-2023-41225

2024-05-0303:15:34
CWE-121
zdi
web.nvd.nist.gov
30
d-link dir-3040
prog.cgi
setipv6pppoesettings
stack-based buffer overflow
remote code execution
vulnerability
hnap requests
lighttpd
tcp ports 80
443
zdi-can-21651

CVSS3

6.8

Attack Vector

ADJACENT

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS

0.001

Percentile

16.2%

D-Link DIR-3040 prog.cgi SetIPv6PppoeSettings Stack-Based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-3040 routers. Authentication is required to exploit this vulnerability.

The specific flaw exists within the prog.cgi binary, which handles HNAP requests made to the lighttpd webserver listening on TCP ports 80 and 443. The issue results from the lack of proper validation of a user-supplied string before copying it to a fixed-size stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-21651.

Affected configurations

Vulners
Vulnrichment
Node
d-linkdir-3040_firmwareRange120
VendorProductVersionCPE
d-linkdir-3040_firmware*cpe:2.3:a:d-link:dir-3040_firmware:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "vendor": "D-Link",
    "product": "DIR-3040",
    "versions": [
      {
        "version": "120B03",
        "status": "affected"
      }
    ],
    "defaultStatus": "unknown"
  }
]

CVSS3

6.8

Attack Vector

ADJACENT

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS

0.001

Percentile

16.2%

Related for CVE-2023-41225