D-Link DIR-3040 prog.cgi SetWan3Settings Stack-Based Buffer Overflow Remote Code Execution Vulnerability
CVE-2023-41218
Key Information:
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- No: Needs adjacent network access
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Monitor
Low risk for most. Patch in your normal cycle.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory โ2Why it's rated "Monitor"
- Its CVSS severity is medium (6.8).
What is CVE-2023-41218?
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
More D-link Vulnerabilities
Out-of-Bounds Write Vulnerability in D-Link DIR-895L Router
Stack-Based Buffer Overflow in D-Link DIR-868L Authentication Component
Stack-based Buffer Overflow in D-Link DI-8400 Router
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction