Read the docs
TI-2023-21835 Aliases CVE-2023-41226GHSA-wx9p-r67p-8cjf

Stack-based buffer overflow in D-Link DIR-3040

Priority LOW 34CWE-121Published · Updated

Key facts

Attack vector
Adjacent network
Privileges required
High
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.

Summary

D-Link DIR-3040 prog.cgi SetMyDLinkRegistration 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-21652.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.009 59th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
D-LinkDIR-3040120B03—No fix listedCNA
  • DIR-3040 VendorD-Link Affected 120B03 Fixed in — No fix listed CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:o:dlink:dir-3040_firmware:*:*:*:*:*:*:*:*up to 1.20b03VulnerableD-Link Japan K.K.
cpe:2.3:h:dlink:dir-3040:-:*:*:*:*:*:*:*not specified by NVDRunning onD-Link Japan K.K.
  • cpe:2.3:o:dlink:dir-3040_firmware:*:*:*:*:*:*:*:* Versions up to 1.20b03 Vulnerable ·D-Link Japan K.K.
  • cpe:2.3:h:dlink:dir-3040:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·D-Link Japan K.K.

Remediation

No fixed version listed by the sources yet.

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Advisory ·

    D-Link DIR-3040 — vendor-provided URL

    15 records Highest priority Priority MEDIUM 2 MEDIUM, 13 LOW

    Other records, highest priority first

    • TI-2023-21839 Stack-based buffer overflow in D-Link DIR-3040Priority MEDIUM 42
    • TI-2023-21838 Heap-based buffer overflow in D-Link DIR-3040Priority MEDIUM 42
    • TI-2023-21826 Stack-based buffer overflow in D-Link DIR-3040Priority LOW 35

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-41226
  2. 2026-10-03 Alias added: GHSA-wx9p-r67p-8cjf

References

  • TI-2024-03070 D-Link DNS-320L/DNS-325/DNS-327L/DNS-340L HTTP GET Request nas_sharing.cgi command injection KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-03069 D-Link DNS-320L/DNS-325/DNS-327L/DNS-340L HTTP GET Request nas_sharing.cgi hard-coded credentials KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-00708 D-Link DIR-859 HTTP POST Request hedwig.cgi path traversal KEVCVSS 3.1CRITICAL 9.8
  • TI-2023-10693 OS Command injection vulnerability in D-Link DIR820LA1_FW105B03 allows attackers to… KEVCVSS 3.1CRITICAL 9.8
  • TI-2022-17249 D-Link Go-RT-AC750 GORTAC750_revA_v101b03 and GO-RT-AC750_revB_FWv200b02 are vulnerable… KEVCVSS 3.1CRITICAL 9.8
  • TI-2022-09657 D-Link DIR-820L 1.05B03 was discovered to contain remote command execution (RCE)… KEVCVSS 3.1CRITICAL 9.8
See all 979 →

Sources