CVE-2022-39986: A Command injection vulnerability in RaspAP 2.8.0 thru 2.8.7 allows unauthenticated attackers to execute arbit
CVE-2022-39986 is a critical-severity flaw (CVSS 9.8) affecting raspap. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 99.1% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2023-08-01 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE (0 stars)
- Write-up: medium.com/%40ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2
- Write-up: medium.com/@ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2
- GitHub PoC: WhiteOwl-Pub/RaspAP-CVE-2022-39986-PoC
- GitHub PoC: mind2hex/CVE-2022-39986
- Metasploit: RaspAP Unauthenticated Command Injection
- Nuclei scan template: RaspAP 2.8.7 - Unauthenticated Command Injection
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-39986?
raspap: upgrade to newer than 2.8.7. Exact commands for each OS are on this page.
Is CVE-2022-39986 being exploited?
CVE-2022-39986 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-39986 affect?
CVE-2022-39986 affects raspap. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2022-39986?
Priority 72/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
PHP vulnerabilities · OpenVPN vulnerabilities
Related CVEs
- CVE-2024-2497 MEDIUM 4.7 DOWNGRADE A vulnerability was found in RaspAP raspap-webgui 3.0.9 and classified as critical
- CVE-2024-28754 HIGH 7.5 UPGRADE RaspAP (aka raspap-webgui) through 3.0.9 allows remote attackers to cause a persistent denial of service (bric
- CVE-2024-28753 MEDIUM 6.5 UPGRADE RaspAP (aka raspap-webgui) through 3.0.9 allows remote attackers to read the /etc/passwd file via a crafted re
- CVE-2023-30260 HIGH 8.8 UPGRADE Command injection vulnerability in RaspAP raspap-webgui 2.8.8 and earlier allows remote attackers to run arbit
- CVE-2022-39987 HIGH 8.8 UPGRADE A Command injection vulnerability in RaspAP 2.8.0 thru 2.9.2 allows an authenticated attacker to execute arbit