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

6.8MEDIUM

Key Information:

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

Summary

A vulnerability exists in D-Link DIR-3040 routers due to a stack-based buffer overflow within the prog.cgi binary, which processes HNAP requests on the lighttpd webserver. This flaw allows authenticated network-adjacent attackers to execute arbitrary code with root privileges by sending specially crafted input. The lack of robust validation of user-supplied strings when copying to a fixed-size buffer is the root cause, posing significant security risks to affected installations.

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

.