Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Wavlink management interface
-
DeliveryAuthenticate with default or stolen credentials
-
ExploitCraft HTTP request with oversized HTTP_COOKIE payload
-
ExecutionSubmit to upload.cgi via lighttpd
-
PersistStack overflow overwrites return address via unsafe strcpy
-
ImpactExecute arbitrary code as root 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 | The attack targets the upload.cgi CGI endpoint served by lighttpd on Wavlink routers. The specific prerequisite is that the attacker must supply a valid authenticated HTTP session (satisfying PR:L per the CVSS 4.0 vector) - this is typically a session cookie obtained after logging in with valid credentials, including default factory credentials that are frequently unchanged on consumer devices. The vulnerable code path is triggered by sending an HTTP request with an oversized HTTP_COOKIE header to upload.cgi; no special router feature or non-default configuration is required beyond the management HTTP interface being reachable. Exploitation is limited by: (1) the need to satisfy PR:L authentication (default credentials or prior credential compromise required); (2) network reachability to the lighttpd HTTP management port (typically TCP 80 or 8080); and (3) the device being one of the affected models running firmware through 20260609. WAN-side exposure of the management interface, which is non-default on many consumer routers but common in misconfigured deployments, would allow remote internet exploitation. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) scores 7.4, with E:P (exploit maturity: proof-of-concept) reflecting the publicly disclosed PoC on GitHub. PR:L indicates that some level of authentication is required - likely a valid session cookie - which moderately constrains unauthenticated mass exploitation. Attack complexity is low and requires no user interaction, meaning that once credentials are obtained (via default credentials, credential stuffing, or session fixation), exploitation is straightforward and automatable. No EPSS data was supplied; however, the combination of network reachability, low complexity, high impact, and public PoC suggests elevated real-world exploitation probability relative to the 7.4 base score alone. The absence of a CISA KEV listing suggests no confirmed mass exploitation campaign at time of analysis, but Wavlink devices are frequently exposed directly to the internet and targeted by IoT botnets. The primary mitigating factor is PR:L - attackers must first obtain a valid session. |
| Exploit ScenarioDerived | An attacker with low-privilege access to the Wavlink management interface - obtained via default credentials or a brute-force attempt - sends a crafted HTTP request to upload.cgi with an oversized HTTP_COOKIE header value. The unsafe strcpy call overflows the stack buffer, overwrites the return address, and redirects execution to shellcode or a ROP chain embedded in the cookie payload. Given the absence of robust exploit mitigations on embedded Wavlink firmware, an attacker achieves root-level code execution on the router, enabling persistent backdoor installation or lateral movement into the LAN. A public PoC on GitHub reduces the skill required to execute this attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 03, 2026
Stack-based buffer overflow in Wavlink's lighttpd-based web interface allows network-adjacent authenticated attackers to achieve arbitrary code execution on at least thirteen SOHO router and range-extender models running firmware through 20260609. The vulnerable code path is the strcpy call within upload.cgi, which copies the HTTP_COOKIE request header into a fixed-size stack buffer without length validation. Publicly available exploit code exists on GitHub (0xcc12138/WAVLINK-vul); no CISA KEV listing is present, but the disclosed POC materially lowers the exploitation barrier for opportunistic actors targeting consumer networking gear.
Earlier versions of this analysis (1)
Stack-based buffer overflow in Wavlink WN-series router firmware (models WN529 through NU516, all firmware up to 20260609) allows remotely authenticated attackers to corrupt stack memory and achieve arbitrary code execution by sending an oversized HTTP_COOKIE header to the upload.cgi endpoint served by lighttpd. The vulnerable strcpy() call performs no bounds validation on the cookie value, enabling classic return-address overwrite exploitation. A public proof-of-concept exploit has been published on GitHub, substantially lowering the skill bar for exploitation; this vulnerability is not yet listed in the CISA KEV catalog, meaning confirmed active exploitation has not been officially documented at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis; affected firmware versions run up to 20260609 with no confirmed fixed release in the reference data. Administrators should immediately disable remote (WAN-side) management access to the HTTP interface on all affected Wavlink models, as this eliminates the network attack surface for unauthenticated and low-privilege attackers reaching upload.cgi from outside the LAN. On LAN-exposed deployments, restrict HTTP management access using firewall rules or VLAN segmentation to trusted management hosts only, accepting the trade-off of reduced administrative flexibility. Changing default credentials reduces the risk of an attacker satisfying the PR:L requirement, though it does not eliminate the vulnerability. Monitor the vendor's firmware update page and apply any patch addressing upload.cgi or the lighttpd HTTP_COOKIE handling immediately upon release. The public PoC is available at https://github.com/0xcc12138/WAVLINK-vul and should be used to validate remediation effectiveness in lab environments prior to production deployment.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in upload.cgi, a CGI handler executed under lighttpd (a lightweight HTTP server commonly embedded in MIPS/ARM-based SOHO router firmware). The root cause is CWE-121 (Stack-Based Buffer Overflow): the function strcpy is used to copy the attacker-controlled HTTP_COOKIE header value into a statically allocated stack buffer, with no bounds checking. Because the return address and saved frame pointer reside on the same stack frame, a sufficiently long cookie string overwrites the return address, redirecting execution to attacker-controlled code. On embedded Linux systems like these routers, exploit mitigations such as stack canaries, ASLR, and NX are frequently absent or weakly implemented, making return-address overwrites straightforward. Affected CPE strings span cpe:2.3:a:wavlink:wn529 through wn573 and wn572, confirming the vulnerability is present across the shared firmware codebase used by multiple device SKUs.
Know when Wn572 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
Network vector confirmed; PR:L because CVSS 4.0 source vector specifies low privilege and session authentication is required to reach upload.cgi.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in Wavlink WN572, WN570H, WN573, WN529, WN530, WN531, WN535, etc. WN529, WN530, WN531, WN535, WN536, WN551, WN557 and NU516 up to 20260609. Affected by this issue is the function strcpy of the file upload.cgi of the component lighttpd. The manipulation of the argument HTTP_COOKIE leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Wavlink SOHO routers and range-extenders (13+ models through firmware 20260609) contain a stack buffer overflow in the web management interface that enables arbitrary code execution for authenticated attackers, with publicly available exploit code documented on GitHub. This vulnerability directly compromises network perimeter infrastructure for any organization deploying affected Wavlink devices, creating a direct path to equipment takeover. No vendor patch is available, requiring immediate protective action.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict administrative interface access to trusted networks via firewall controls; (2) Disable upload.cgi endpoint if operationally feasible; (3) Implement network segmentation preventing direct access from untrusted sources; (4) Deploy network-based monitoring for HTTP_COOKIE exploitation patterns; (5) Plan equipment replacement with patched firmware versions or alternative vendors.
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.
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
EUVD-2026-52371
GHSA-82rw-j2xw-2766
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB