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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
RaspAP Unauthenticated Command Injection
exploit/unix/http/raspap_rce
GitHub 1 repository
-
mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE ★ 0 · Aug 24, 2023
bash script for automated discovery and exploitation of machines with the CVE-2022-39986 vulnerability
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- RaspAP 2.8.7 - Unauthenticated Command Injection http/cves/2022/CVE-2022-39986.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | billz/raspap-webgui | >= 2.8.0, < 2.8.8 | 2.8.8 | GHSA-7c28-wg7r-pg6f |