Vulnerability record · CVE-2022-2487 · published 20 July 2022
CVE-2022-2487: WAVLINK WN535K2/WN535K3 nightled.cgi OS command injection
Wavlink · Wl Wn535k2 Firmware
WAVLINK WN535K2 and WN535K3 firmware contain an OS command injection flaw in /cgi-bin/nightled.cgi, where the start_hour argument is passed to a shell without sanitization. The vulnerability is rated critical and a public exploit has been disclosed, so unpatched devices are at immediate risk.
Description
A vulnerability has been found in WAVLINK WN535K2 and WN535K3 and classified as critical. This vulnerability affects unknown code of the file /cgi-bin/nightled.cgi. The manipulation of the argument start_hour leads to os command injection. The exploit has been disclosed to the public and may be used.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8 with no authentication or interaction required, public exploit code, and very high EPSS probability make this an urgent patching target.
What it is
WAVLINK WN535K2 and WN535K3 firmware contain an OS command injection flaw in /cgi-bin/nightled.cgi, where the start_hour argument is passed to a shell without sanitization. The vulnerability is rated critical and a public exploit has been disclosed, so unpatched devices are at immediate risk.
Impact
An unauthenticated remote attacker can execute arbitrary operating system commands on the device, gaining full control of the router and any data or traffic it handles.
Attack surface
Reachable over the network via HTTP requests to /cgi-bin/nightled.cgi; the CVSS vector shows no privileges or user interaction required, so the endpoint is exposed to anyone who can reach the device.
Exploitation
Public exploit code is referenced in the advisory links, and EPSS estimates a 79.5% probability of exploitation within 30 days; the CVE is not listed in CISA KEV.
What to do
- Apply the vendor firmware update for WN535K2 and WN535K3 as soon as it is available.
- If no patch exists, restrict access to the router management interface and /cgi-bin/ paths to trusted networks only.
- Disable remote administration and UPnP exposure on the WAN interface.
- Replace or isolate end-of-support devices that cannot be patched.
Detection
- Monitor HTTP requests to /cgi-bin/nightled.cgi for suspicious start_hour values containing shell metacharacters.
- Alert on outbound connections or command execution from router management IPs to unknown hosts.
- Review device logs for unexpected process launches or configuration changes following nightled.cgi access.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/1angx/webray.com.cn/blob/main/Wavlink/Wavlink%20nightled.cgi%20.md | ExploitThird Party Advisory |
| https://vuldb.com/?id.204538 | ExploitThird Party AdvisoryVDB Entry |
| https://github.com/1angx/webray.com.cn/blob/main/Wavlink/Wavlink%20nightled.cgi%20.md | ExploitThird Party Advisory |
| https://vuldb.com/?id.204538 | ExploitThird Party AdvisoryVDB Entry |
Track CVE-2022-2487 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-2487), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.