CVE-2025-6158 D-Link DIR-665 HTTP POST Request sub_AC78 stack-based overflow

High 8.7 Published Updated

Remote attackers can execute arbitrary code via a stack-based buffer overflow in the HTTP POST handler of unsupported D-Link DIR-665 routers.

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-2025-6158?

CVE-2025-6158 is a high-severity memory corruption vulnerability in D-Link DIR-665, published on 17 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability classified as critical has been found in D-Link DIR-665 1.00. This affects the function sub_AC78 of the component HTTP POST Request Handler. The manipulation leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed to the 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-2025-6158?

It affects 1 product.

Products include Dlink Dir-655 Firmware.

How do I fix CVE-2025-6158?

No fix has been published for CVE-2025-6158 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-2025-6158 being exploited?

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

Sources

Also known as GHSA-q8m4-8mjm-8xq3.

Is CVE-2025-6158 in your software?

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

Check your SBOMs for free