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

6.8MEDIUM

Key Information:

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

Summary

A stack-based buffer overflow vulnerability exists in the prog.cgi binary of D-Link DIR-3040 routers, which could allow network-adjacent attackers to execute arbitrary code. This issue stems from insufficient validation of user-supplied strings during HNAP (Home Network Administration Protocol) requests directed at the lighttpd web server operating on TCP ports 80 and 443. Exploiting this vulnerability requires authentication, meaning that an attacker must have valid credentials to access the router. Once compromised, the attacker could execute malicious commands with root privileges, potentially compromising the entire network associated with the affected router.

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

.