Wavlink NU516U1 Command Injection Vulnerability in Firewall CGI

Vulnerability

A command injection vulnerability has been identified in the Wavlink NU516U1 router, specifically in the firmware version M16U1_V240425. The issue arises in the '/cgi-bin/firewall.cgi' file, within the 'sub_401778' function. The vulnerability is triggered by manipulating the 'dmz_flag' parameter, allowing remote execution of arbitrary commands. This exploit has been publicly disclosed and is available as a proof-of-concept.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the affected device.

Reproduction

To reproduce this vulnerability, send a POST request to '/cgi-bin/firewall.cgi' with the 'firewall' parameter set to 'DMZ' and the 'dmz_flag' parameter containing the command to be executed. The request can be made using a web browser or a tool like curl, ensuring to include the necessary headers and cookies for authentication.

Added: Sep 25, 2025, 6:24 PM
Updated: Sep 25, 2025, 6:24 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.6
threat
6.4
urgency
2.9
incentive
5.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.