Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend authenticated request to /cgi-bin/hedwig.cgi
-
ExploitCraft oversized input parameter
-
ExecutionTrigger stack buffer overflow
-
ImpactExecute arbitrary code on router
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access to D-Link DIR-645 router firmware versions 1.01, 1.02, or 1.03. Attacker must have valid login credentials to access the /cgi-bin/hedwig.cgi endpoint. No victim interaction needed. Remote exploitation possible. Products no longer supported by D-Link. |
| Impact | Stack buffer overflow in end-of-life D-Link router requiring authenticated access limits immediate blast radius to compromised networks. CVSS 7.4 reflects high confidentiality/integrity impact. Public exploit availability elevates risk for legacy infrastructure operators. Legacy product status means no vendor patches; mitigation depends entirely on network segmentation and access controls. |
| Exploit ScenarioDerived | Authenticated attacker sends oversized payload to /cgi-bin/hedwig.cgi, triggering stack overflow in hedwigcgi_main function. Overflow overwrites return pointer, enabling code execution with router privileges. Publicly available exploit code exists, lowering attack complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 08, 2026
Stack-based buffer overflow in D-Link DIR-645 router (versions 1.01, 1.02, 1.03) via hedwigcgi_main function in /cgi-bin/hedwig.cgi allows authenticated remote attackers to achieve complete system compromise. Exploitation requires low-privilege credentials but no user interaction. Publicly available exploit code exists. Product is end-of-life with no vendor support, making remediation limited to device replacement or network isolation.
RemediationAI
No vendor-released patch identified at time of analysis; D-Link has discontinued support for DIR-645 hardware per vendor statement. Primary recommendation: replace device with currently supported router model from active product line. Interim mitigation: disable remote administration interfaces, restrict /cgi-bin/hedwig.cgi access via firewall ACLs permitting only trusted management IPs, implement network segmentation isolating device from critical assets, enforce strong authentication credentials, monitor for unauthorized access attempts. Consult D-Link EOL policy and migration guidance at https://www.dlink.com/. Detailed technical writeup and proof-of-concept analysis available at https://github.com/Pers1st0/CVE/blob/main/stack-based%20buffer%20overflow%20vulnerability%20exists%20in%20the%20hedwig.cgi%20of%20D-Link%20DIR-645.md and https://vuldb.com/vuln/356263.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-121 stack-based buffer overflow triggered through unsanitized input to hedwigcgi_main handler in hedwig.cgi CGI script. CVSS 4.0 vector PR:L indicates authenticated attack vector. Affects CPE cpe:2.3:a:d-link:dir-645 across firmware versions 1.01-1.03. Overflow enables arbitrary code execution in router context.
Know when Dir 645 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in D-Link DIR-645 1.01/1.02/1.03. Impacted is the function hedwigcgi_main of the file /cgi-bin/hedwig.cgi. The manipulation results in stack-based buffer overflow. The attack can be launched remotely. The exploit is now public and may be used. This vulnerability only affects products that are no longer supported by the maintainer.
Executive ViewAI
D-Link DIR-645 routers (versions 1.01-1.03) contain a stack-based buffer overflow in the web interface that allows authenticated attackers to gain complete control of the device. This affects organizations still operating these end-of-life routers, creating an unpatched remote code execution risk that cannot be remediated through vendor updates. Immediate network isolation or replacement is required to prevent lateral movement into critical infrastructure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict administrative access to the router's web interface (/cgi-bin/hedwig.cgi) using firewall rules-allow only trusted administrative IP ranges; (2) Disable remote management if not operationally required; (3) Enforce network segmentation so compromised routers cannot pivot to sensitive systems; (4) Monitor for suspicious authentication attempts and command execution on affected devices; (5) Implement replacement roadmap with timeline not to exceed 90 days given end-of-life status and lack of patching capability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
EUVD-2026-20809
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB