RaspAP - RCE (CVE-2022-39986)
Description
A Command injection vulnerability in RaspAP 2.8.0 thru 2.8.7 allows unauthenticated attackers to execute arbitrary commands via the cfg_id parameter in /ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php.
psychologyCrowdSec Analysis
CVE-2022-39986 is a critical command injection vulnerability in RaspAP versions 2.8.0 through 2.8.7, allowing unauthenticated attackers to execute arbitrary system commands via the cfg_id parameter in specific OpenVPN-related endpoints. This flaw could be exploited remotely to gain full control over the affected device, leading to data theft, system compromise, or service disruption.
CrowdSec has been tracking this vulnerability and its exploits since 5th of August 2025.
CrowdSec has not observed any significant exploitation activity targeting CVE-2022-39986 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.
Attackers exploit the cfg_id parameter in /ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php to inject shell commands, leading to unauthenticated remote code execution on vulnerable RaspAP installations.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2023-08-01 |
| Rule Released | 2025-08-05 |
Remediation & Protection
External References
- https://medium.com/%40ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2
- http://packetstormsecurity.com/files/174190/RaspAP-2.8.7-Unauthenticated-Command-Injection.html
- https://github.com/RaspAP/raspap-webgui/blob/master/ajax/openvpn/activate_ovpncfg.php
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yaml