CVE-2021-35409: Unauthenticated command injection in Prolink PRC2402M nightled.cgi
CVE-2021-35409 is an unauthenticated OS command injection vulnerability in the Prolink PRC2402M router, tested on firmware version 20190909. The flaw is in the CGI endpoint /cgi-bin/nightled.cgi. According to the provided analysis, the script reads HTTP GET parameters from QUERY_STRING and, via setNightLed, retrieves user-controlled values including start_hour, start_min, end_hour, and end_min. These values are duplicated and incorporated with sprintf into the shell command "echo -n %s %s %s %s > /tmp/scheduleSet &", which is then executed through do_system without sufficient input validation or sanitization. Because attacker-controlled input reaches a command-execution sink, a remote attacker can inject arbitrary shell metacharacters and execute commands.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote arbitrary command execution as root on the affected router. This can result in full device compromise, including modification of configuration, execution of additional payloads, persistence, interception or manipulation of network traffic, and use of the router as a pivot point or botnet node.
Mitigation
If you can’t patch tonight, do this now.
Until patched firmware is deployed, restrict or disable external access to the router web interface and CGI endpoints, especially WAN exposure to /cgi-bin/nightled.cgi. Limit management access to trusted networks only, use firewall rules to block untrusted HTTP access, and monitor for suspicious requests containing shell metacharacters or encoded command-substitution syntax in parameters such as start_hour, start_min, end_hour, and end_min.
Remediation
Patch, then assume compromise.
Apply the vendor fix for CVE-2021-35409. The provided context states Prolink acknowledged the issue in June 2021 and fixed the vulnerability on 2021-06-13 after an initial patch was bypassed. Remediation should include replacing shell-based command construction with safer APIs, eliminating direct use of sprintf plus system/do_system on user input, and enforcing strict server-side validation and allowlisting for all parameters accepted by nightled.cgi.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2021-35409 exploited in the wild?
- As of Apr 11, 2026, Mallory has no reports of CVE-2021-35409 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-35409?
- As of Apr 11, 2026, Mallory has found no public exploit for CVE-2021-35409.
- Is there a patch for CVE-2021-35409?
- Apply the vendor fix for CVE-2021-35409. The provided context states Prolink acknowledged the issue in June 2021 and fixed the vulnerability on 2021-06-13 after an initial patch was bypassed.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.