CVE-2026-13538
Received Received - Intake

Command Injection in Wavlink WL-NU516U1-A Router

Vulnerability report for CVE-2026-13538, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-29

Last updated on: 2026-06-29

Assigner: VulDB

Description

A vulnerability was determined in Wavlink WL-NU516U1-A M16U1_V240425. The affected element is the function sub_401D68 of the file /cgi-bin/wireless.cgi of the component POST Parameter Handler. This manipulation of the argument SSID2G2/SSID5G2/AuthMethod2/WPAPSK12 causes command injection. Remote exploitation of the attack is possible. The exploit has been publicly disclosed and may be utilized. The affected component should be upgraded. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-29
Last Modified
2026-06-29
Generated
2026-06-29
AI Q&A
2026-06-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
wavlink wl-nu516u1 m16u1_v240425

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-13538 is a command injection vulnerability in the Wavlink WL-NU516U1 router firmware version M16U1_V240425. It occurs in the /cgi-bin/wireless.cgi endpoint, specifically in the function sub_401D68 that handles POST parameters like SSID2G2 and SSID5G2. The vulnerability arises because user input is directly concatenated into shell commands without proper sanitization. Although the input filter blocks backtick and pipe characters, it fails to block command substitution syntax such as $(command), allowing attackers to inject and execute arbitrary commands remotely.

An attacker can exploit this by sending a crafted POST request with malicious SSID2G2 or SSID5G2 values, which results in the execution of arbitrary commands on the device. Proof of concept exploits demonstrate that the device can be made to perform outbound HTTP requests to attacker-controlled servers, confirming remote code execution.

Impact Analysis

This vulnerability allows remote attackers to execute arbitrary commands on the affected router without proper authorization. This can lead to full system compromise, unauthorized access, and disruption of network services.

  • Attackers can run malicious commands remotely on the device.
  • Potential for unauthorized access to the router and connected network.
  • Possible disruption or denial of service of network functionality.
  • Attackers may use the compromised device to launch further attacks or exfiltrate data.
Detection Guidance

This vulnerability can be detected by monitoring for unusual POST requests to the /cgi-bin/wireless.cgi endpoint, specifically when the page parameter is set to multi_ssid and includes suspicious values in the SSID2G2 or SSID5G2 parameters.

Detection can involve capturing and analyzing network traffic for POST requests containing command substitution syntax such as $(command) within these parameters, which bypass the input filter.

A possible command to detect exploitation attempts is to use network traffic inspection tools like tcpdump or Wireshark to filter HTTP POST requests to /cgi-bin/wireless.cgi and look for suspicious payloads.

  • tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | grep '/cgi-bin/wireless.cgi'
  • Use a web proxy or HTTP log analyzer to search POST data for patterns like 'SSID2G2=$(...)' or 'SSID5G2=$(...)' indicating command injection attempts.
Mitigation Strategies

The primary mitigation step is to upgrade the affected Wavlink WL-NU516U1 router firmware to the fixed version released by the vendor.

Until the upgrade can be applied, restrict access to the /cgi-bin/wireless.cgi endpoint by limiting network exposure, such as disabling remote management or applying firewall rules to block unauthorized POST requests.

Monitor network traffic for signs of exploitation attempts and consider disabling or restricting features that accept user input for SSID2G2 and SSID5G2 parameters if possible.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-13538. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart