# CVE-2023-51621: D-Link DIR-X3260 prog.cgi SetDeviceSettings Stack-based Buffer Overflow Remote Code Execution Vulnerability

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-03 · Modified: 2024-08-02
- Record: https://cvemate.com/vulnerability/CVE-2023-51621 · JSON: https://cvemate.com/vulnerability/CVE-2023-51621/json

## Description

```text
D-Link DIR-X3260 prog.cgi SetDeviceSettings 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-X3260 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-21670.
```

## Signals

- CVSS: 6.8 medium (v3.0, CVE.org) CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.126%, percentile 67.403%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- d-link dir-x3260: 1.04B01
- dlink dir-x3260\_firmware: \< 1.04b01

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-24-041/>
- <https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10365>

---

Data as of 2026-12-05T08:48:37.716Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
