CVE-2026-4861
8.8Wavlink · WL-NU516U1
A stack-based buffer overflow in the ftext function of /cgi-bin/nas.cgi on Wavlink WL-NU516U1 allows remote code execution via a manipulated Content-Length header.
Executive summary
A critical stack-based buffer overflow vulnerability in the Wavlink WL-NU516U1 firmware enables remote attackers to achieve arbitrary code execution.
Vulnerability
The vulnerability exists in the ftext function within the nas.cgi component, which fails to perform bounds checking when reading HTTP POST request bodies. By providing an oversized Content-Length value, an attacker can trigger a stack-based buffer overflow, overwriting the return address and hijacking the execution flow.
Business impact
The ability to achieve remote code execution on a network device poses a severe risk to organizational security. Successful exploitation could allow an attacker to gain full control over the device, facilitating lateral movement within the network, data exfiltration, or the establishment of persistent backdoors. Given the CVSS score of 8.8, this vulnerability represents a high-severity threat that could lead to significant operational disruption and compromise of sensitive internal communications.
Remediation
Immediate Action: As no official vendor patch is currently available, administrators should restrict network access to the affected devices and isolate them from the public internet immediately.
Proactive Monitoring: Security teams should monitor network traffic for anomalous HTTP POST requests directed at /cgi-bin/nas.cgi, specifically looking for unusually large Content-Length values.
Compensating Controls: Deploy Web Application Firewall rules to inspect and drop incoming HTTP requests that contain suspicious or excessively large Content-Length headers directed at the vulnerable endpoint.
Exploitation status
Public Exploit Available: Yes, a public proof-of-concept exists as documented in the research write-up on GitHub.
Analyst recommendation
Given the availability of public proof-of-concept code and the severity of the potential impact, this vulnerability must be treated with high priority. Organizations using the Wavlink WL-NU516U1 should implement strict access controls and monitor logs for signs of exploitation while awaiting a vendor-supplied firmware update. If the device is not mission-critical, consider deactivating it until a secure version is released.
More Wavlink CVEs
Sources
Originally found and disclosed by haimianbaobao (VulDB User), with VulDB (coordinator), per the CVE Program record.
- VDB-353192 | Wavlink WL-NU516U1 nas.cgi ftext stack-based overflow Vulnerability database entry
- VDB-353192 | CTI Indicators (IOB, IOC, IOA)
- Submit #776217 | Wavlink NU516U1 V260227 Stack-based Buffer Overflow Third-party advisory
- Exploit / PoC