D-Link DIR-3040 prog.cgi SetWanSettings Stack-Based Buffer Overflow Remote Code Execution Vulnerability
Published May 3, 2024
6.8
MEDIUMCVSS 3.1
EPSS 0.90%
Description
D-Link DIR-3040 prog.cgi SetWanSettings 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-21619.
Affected products
-
- Version 120B03StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| D-Link | n/a | n/a |
|
- ≤ 1.20b03
-
- Version 1.20b03StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| D-Link | Dir-3040 Firmware | n/a |
|
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (2)
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350 vendor-advisoryPatchVendor Advisory
- https://www.zerodayinitiative.com/advisories/ZDI-23-1327/ x_research-advisoryThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10350 | vendor-advisoryPatchVendor Advisory | |
| https://www.zerodayinitiative.com/advisories/ZDI-23-1327/ | x_research-advisoryThird Party Advisory |
Change history (0)
No recorded changes yet.