{"id":"CVE-2023-41228","url":"https://www.cyber-defence.io/tools/cve/CVE-2023-41228","generatedAt":"2026-10-28T01:10:36.765Z","title":"D-Link DIR-3040 prog.cgi SetUsersSettings Stack-Based Buffer Overflow Remote Code Execution Vulnerability.","description":"D-Link DIR-3040 prog.cgi SetUsersSettings 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.\n\nThe 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-21654.","published":"2024-05-03T03:15:35.000Z","lastModified":"2026-06-17T06:21:14.000Z","status":"Analyzed","sourceIdentifier":"zdi-disclosures@trendmicro.com","cvss":{"version":"3.1","score":6.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-121","CWE-787"],"affected":["dlink/dir-3040 firmware"],"epss":{"score":0.009,"percentile":0.59383,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.90%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350","tags":["Patch","Vendor Advisory"],"source":"zdi-disclosures@trendmicro.com"},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-23-1336/","tags":["Third Party Advisory"],"source":"zdi-disclosures@trendmicro.com"},{"url":"https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-23-1336/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-41228","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}