CVE-2021-33357: Unauthenticated Command Injection in RaspAP /ajax/networking/get_netcfg.php
- Vendor
- Raspap
CVE-2021-33357 is an unauthenticated OS command injection vulnerability in RaspAP versions 2.6 to 2.6.5. The vulnerability exists in the 'iface' GET parameter of the /ajax/networking/get_netcfg.php endpoint, where improper input sanitization allows an attacker to inject special characters (such as ';') and execute arbitrary OS commands. The endpoint does not require authentication or CSRF protection, making exploitation trivial for remote attackers.
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 unauthenticated remote attackers to execute arbitrary OS commands as root, leading to full system compromise. This can result in the attacker gaining persistent root access, exfiltrating sensitive data, or using the device as a pivot point for further attacks on the network.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict network access to the affected endpoint, implement web application firewall (WAF) rules to block malicious input, and monitor for suspicious activity. However, these are only temporary measures and do not fully address the underlying vulnerability.
Remediation
Patch, then assume compromise.
Upgrade RaspAP to version 2.6.6 or later, where the vulnerability has been patched. Ensure that all instances are updated promptly to prevent exploitation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-33357 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-33357?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-33357.
- Is there a patch for CVE-2021-33357?
- Upgrade RaspAP to version 2.6.6 or later, where the vulnerability has been patched. Ensure that all instances are updated promptly to prevent exploitation.
- What products are affected by CVE-2021-33357?
- Raspap.
- How severe is CVE-2021-33357?
- CVE-2021-33357 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 17.4% (97th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.