Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Unauthenticated network request to nas.cgi (AV:N/AC:L/PR:N/UI:N); stack overflow enabling code execution on the device yields full C/I/A impact with no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability has been found in Wavlink WL-NU516U1 708c073-mt7628. This affects the function fgets of the file nas.cgi. The manipulation of the argument CONTENT_LENGTH leads to stack-based buffer overflow. Remote exploitation of the attack is possible. You should upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
AnalysisAI
Stack-based buffer overflow in the Wavlink WL-NU516U1 (firmware 708c073-mt7628) router's nas.cgi handler lets remote unauthenticated attackers overflow a fixed-size stack buffer by manipulating the HTTP CONTENT_LENGTH value processed via fgets. Successful exploitation can crash the device or execute arbitrary code with full compromise of confidentiality, integrity, and availability. A public write-up (GitHub report2.md) exists, but the flaw is not listed in CISA KEV - no public weaponized exploit is confirmed at time of analysis.
Technical ContextAI
The affected component is nas.cgi, a CGI binary that provides NAS/USB-storage management on the Wavlink WL-NU516U1, a MediaTek MT7628-based SOHO wireless router/USB adapter running an embedded Linux (MIPS) firmware. The vulnerability is CWE-121 (stack-based buffer overflow): the code reads the attacker-controlled CONTENT_LENGTH CGI/environment value into a fixed-size stack buffer via fgets without adequate bounds enforcement, so an oversized value corrupts the stack frame, saved registers, and return address. On MIPS embedded targets lacking modern exploit mitigations (often no ASLR/NX or weak protections), such overflows are frequently escalated from denial of service to remote code execution.
RemediationAI
Patch available per vendor advisory - the vendor was contacted early and released a fixed firmware image, available at https://dl.wavlink.com/firmware/RD/WINSTAR_NU516U1-WO-A-2026-07-13-4b8a21f-mt7628-squashfs-sysupgrade.bin; apply this sysupgrade firmware (build 4b8a21f-mt7628, dated 2026-07-13) as the primary fix. Until updating, reduce exposure by ensuring the router's web/NAS management interface is not reachable from the WAN (disable remote/WAN administration), and restrict access to the LAN-side management interface to trusted hosts only. If the NAS/USB feature is unused, disable it to remove the nas.cgi attack surface; the trade-off is loss of network storage functionality. Note that blocking or filtering management ports on the LAN may disrupt legitimate administration, so validate connectivity after applying controls.
More in Wl Nu516U1
View allRemote attackers can exploit a stack-based buffer overflow in the /cgi-bin/nas.cgi endpoint of Wavlink WL-NU516U1 by man
Stack-based buffer overflow in the Wavlink WL-NU516U1 NAS device's nas.cgi password change handler allows remote unauthe
OS command injection in the Wavlink WL-NU516U1 firmware (build 708c073-mt7628) allows remote attackers to execute arbitr
OS command injection in the Wavlink WL-NU516U1 router's CGI web administration interface allows authenticated network at
A vulnerability was found in Wavlink WL-NU516U1 240425.
OS command injection in the Wavlink WL-NU516U1 router's admin password handler allows a remote, low-privileged authentic
Same weakness CWE-121 – Stack-based Buffer Overflow
View allSame technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-52167
GHSA-hfj9-7vrj-jwv3