CVE-2026-5815 D-Link DIR-645 hedwig.cgi hedwigcgi_main stack-based overflow

High 8.7 Published Updated

Remote attackers can execute arbitrary code on unsupported D-Link DIR-645 routers via a stack-based buffer overflow in the hedwig.cgi script.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-5815?

CVE-2026-5815 is a high-severity memory corruption vulnerability in D-Link DIR-645, published on 8 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-121, CWE-119

Which versions are affected by CVE-2026-5815?

How do I fix CVE-2026-5815?

No fix has been published for CVE-2026-5815 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-5815 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5815 exists.

Sources

Also known as GHSA-84j4-8w5h-98h3.

Is CVE-2026-5815 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free