CVE-2023-41220
Last modified
CVE-2023-41220 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. D-Link DIR-3040 prog.cgi SetSysEmailSettings 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. EPSS estimates a 0.70% chance of exploitation in the next 30 days.
Description
D-Link DIR-3040 prog.cgi SetSysEmailSettings 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-21620.
Metrics
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Dlink | Dir-3040 Firmware | <= 1.20b03 |
References
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350Patch, Vendor Advisory
- https://www.zerodayinitiative.com/advisories/ZDI-23-1328/Third Party Advisory
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350Patch, Vendor Advisory
- https://www.zerodayinitiative.com/advisories/ZDI-23-1328/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2023-41220?
How severe is CVE-2023-41220?
How do I fix CVE-2023-41220?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-41215D-Link DAP-2622 DDP Set Date-Time Stack-based Buffer Overflo…8.8
- CVE-2023-41216D-Link DIR-3040 prog.cgi SetDynamicDNSSettings Stack-Based B…6.8
- CVE-2023-41217D-Link DIR-3040 prog.cgi SetQuickVPNSettings Password Stack-…7.1
- CVE-2023-41218D-Link DIR-3040 prog.cgi SetWan3Settings Stack-Based Buffer …6.8
- CVE-2023-41219D-Link DIR-3040 prog.cgi SetWanSettings Stack-Based Buffer O…6.8
- CVE-2023-4122Student Information System v1.0 is vulnerable to an Insecure…8.8
- CVE-2023-41221D-Link DIR-3040 prog.cgi SetWLanRadioSecurity Stack-Based Bu…6.8
- CVE-2023-41222D-Link DIR-3040 prog.cgi SetWan2Settings Stack-Based Buffer …6.8
- CVE-2023-41223D-Link DIR-3040 prog.cgi SetQuickVPNSettings PSK Stack-Based…6.8
- CVE-2023-41224D-Link DIR-3040 prog.cgi SetDeviceSettings Stack-Based Buffe…6.8
- CVE-2023-41225D-Link DIR-3040 prog.cgi SetIPv6PppoeSettings Stack-Based Bu…6.8
- CVE-2023-41226D-Link DIR-3040 prog.cgi SetMyDLinkRegistration Stack-Based …6.8
Are you affected by CVE-2023-41220?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
