CVE-2023-41228
published medium CVSS 3.0 · 6.8D-Link DIR-3040 prog.cgi SetUsersSettings Stack-Based Buffer Overflow Remote Code Execution Vulnerability
Package status and fixes
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. 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-21654.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- zdi · cna
- Vector string
- CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| D-Link | DIR-3040 | 120B03 (affected)Default: unknown | zdi · cna |
| d-link | dir-3040 | 0 to < 120B03 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-121 CWE-121: Stack-based Buffer Overflow
References
2- vendor-provided URL https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350
- ZDI-23-1336 https://www.zerodayinitiative.com/advisories/ZDI-23-1336/
Provider assertions
3zdi · cna
D-Link DIR-3040 prog.cgi SetUsersSettings Stack-Based Buffer Overflow Remote Code Execution Vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6c9ad9b2df214d635fdf4d441b1b03775eb0700f4ce9c8afb6f21d6746be620f
- Ingested
- 23 Sep 2026, 08:11:26 UTC
- Source record
- Official CVE record