Back to Labs
Security Advisory

CVE-2021-40407

About

An OS command injection vulnerability exists in the device network settings functionality of reolink RLC-410W v3.0.0.136_20121102. At [1] or [2], based on DDNS type, the ddns->domain variable, that has the value of the domain parameter provided through the SetDdns API, is not validated properly. This would lead to an OS command injection. An attacker can send an HTTP request to trigger this vulnerability.

Weakness (CWE):CWE-78

Rainforest analyst review

The Reolink RLC-410W camera takes the DDNS domain parameter from its SetDdns API and drops it into an OS command without validating it, so an attacker who can call that API injects shell commands that run as root on the camera. The flaw is a classic unsanitized-parameter-to-shell path in network-settings handling; a single crafted HTTP request to the device is the whole exploit, and success means full root control of the camera.

The gating factor is that the SetDdns API requires an authenticated, high-privileged session — the vector reflects that. So this isn't an anonymous internet takeover; it's an attacker who already has admin credentials (default passwords, reused creds, or a prior foothold) turning that access into persistent root code execution and, from there, a foothold on the network the camera sits on. IP cameras are attractive because they're always-on, rarely monitored, and make excellent botnet nodes or pivot points, so the post-auth RCE is worth more than the "needs admin" caveat might suggest.

Our emphasis is credential hygiene and exposure, since the precondition is admin access. We'd flag any RLC-410W on the specified firmware, confirm none are internet-reachable with default or weak credentials, and push them behind segmentation so the management API isn't broadly callable. Where firmware updates lag, network isolation of the camera VLAN is the practical virtual patch — the exploit needs to reach the API, so cutting that reach is the lever.

References

Related CVEs

Frequently asked questions

What is CVE-2021-40407?

An OS command injection vulnerability exists in the device network settings functionality of reolink RLC-410W v3.0.0.136_20121102. At [1] or [2], based on DDNS type, the ddns->domain variable, that has the value of the domain parameter provided through the SetDdns API, is not validated properly. This would lead to an OS command injection. An attacker can send an HTTP request to trigger this vulnerability.

How severe is CVE-2021-40407?

CVE-2021-40407 carries a CVSS 3.1 base score of 7.2, rated high. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 76 out of 100, in the high band.

How is CVE-2021-40407 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H): attack vector Network, attack complexity Low, privileges required High, user interaction None. Impact on confidentiality High, integrity High and availability High.

Which products are affected by CVE-2021-40407?

Public advisories list the following as affected: rlc-410w, rlc-410w firmware. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2021-40407?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email