CVE-2026-5004 Wavlink WL-WN579X3-C UPNP firewall.cgi sub_4019FC stack-based overflow

High 8.7 Published Updated

Remote attackers can trigger a stack-based buffer overflow in the UPNP handler of Wavlink routers, potentially leading to arbitrary code execution.

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-5004?

CVE-2026-5004 is a high-severity memory corruption vulnerability in Wavlink WL-WN579X3-C, published on 28 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was determined in Wavlink WL-WN579X3-C 231124. This impacts the function sub_4019FC of the file /cgi-bin/firewall.cgi of the component UPNP Handler. Executing a manipulation of the argument UpnpEnabled can lead to stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-121, CWE-787, CWE-119

Which versions are affected by CVE-2026-5004?

It affects 1 product.

Products include Wavlink Wl-Wn579x3-C Firmware.

How do I fix CVE-2026-5004?

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

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

Sources

Also known as GHSA-xcxj-mq5h-26p9.

Is CVE-2026-5004 in your software?

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

Check your SBOMs for free