CVE-2024-5294: D-Link DIR-3040 · Memory Leak
Affects D-Link DIR-3040Source CVE Database V5
Not known to be exploited · CVSS 4.3 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 23 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
AI-suggested
1. Monitor D-Link’s official channels for firmware updates addressing CVE-2024-5294 and apply patches promptly once available. 2. Implement network segmentation to isolate critical routers from untrusted or guest networks, reducing exposure to network-adjacent attackers. 3. Restrict access to router management interfaces (ports 80 and 443) using firewall rules or access control lists to trusted IP addresses only. 4. Employ intrusion detection/prevention systems (IDS/IPS) to monitor for unusual or repeated HNAP requests targeting prog.cgi endpoints, enabling early detection of exploitation attempts. 5. Regularly audit and update router firmware to the latest stable versions to minimize exposure to known vulnerabilities. 6. Consider deploying network-level rate limiting on HTTP/HTTPS traffic to the router to mitigate potential memory exhaustion from repeated requests. 7. In environments where the DIR-3040 is critical, evaluate alternative hardware or vendor solutions if timely patches are unavailable.
Description
D-Link DIR-3040 prog.cgi websSecurityHandler Memory Leak Denial-of-Service Vulnerability. This vulnerability allows network-adjacent attackers to create a denial-of-service condition on affected installations of D-Link DIR-3040 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the prog.cgi program, which handles HNAP requests made to the lighttpd webserver listening on ports 80 and 443. The issue results from the lack of proper memory management when processing HTTP cookie values. An attacker can leverage this vulnerability to create a denial-of-service condition on the system. . Was ZDI-CAN-21668.