D-Link DIR-3040 prog.cgi SetMyDLinkRegistration Stack-Based Buffer Overflow Remote Code Execution Vulnerability
CVE-2023-41226

6.8MEDIUM

Key Information:

Vendor
D-link
Status
Vendor
CVE Published:
3 May 2024

Summary

The D-Link DIR-3040 router is affected by a stack-based buffer overflow vulnerability in the prog.cgi binary. This flaw arises from insufficient validation of user-supplied input, which is copied into a fixed-size buffer within the context of the lighttpd web server running on TCP ports 80 and 443. Network-adjacent attackers can exploit this vulnerability to execute arbitrary code with root privileges, given that they have valid authentication. The issue emphasizes the importance of input validation in preventing unauthorized access and code execution in network devices.

Affected Version(s)

DIR-3040 120B03

References

CVSS V3.1

Score:
6.8
Severity:
MEDIUM
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Adjacent Network
Attack Complexity:
Low
Privileges Required:
High
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.