CVE-2022-39986: RaspAP - Command Injection
- Cve: CVE-2022-39986
- Name: RaspAP - Command Injection
- 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.
- Impact: Unauthenticated attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
- Remediation: Update to the latest version of RaspAP that addresses this vulnerability or apply security patches provided by the vendor.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.99058
- Epss percentile: 0.99932
- Assignee: [email protected]
- Published at: 2023-08-01T14:15:09Z
- Age in days: 1211
- Modified at: 2026-06-17T04:58:36Z
- Public exploits total: 4
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39986
- Nvd status: modified
- Checked, none or zero: patch available, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2023-11-13 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2022-39986 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE | poc-in-github | 2023-08-24 |
| https://github.com/mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE.git | vulncheck-xdb | 2023-08-24 |
| https://github.com/tucommenceapousser/RaspAP-CVE-2022-39986-PoC.git | vulncheck-xdb | 2023-08-16 |
| https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/raspap_rce.rb | metasploit | 2023-07-31 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/RaspAP/raspap-webgui/blob/master/ajax/openvpn/activate_ovpncfg.php | nvd | Vendor Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yaml | nuclei_template | Nuclei Template |
| https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2022-39986 | vulncheck | Vulncheck Reported Exploitation |
| https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-39986 | vulncheck | Vulncheck Reported Exploitation |
| http://packetstormsecurity.com/files/174190/RaspAP-2.8.7-Unauthenticated-Command-Injection.html | nvd | |
| https://medium.com/%40ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| raspap:raspap | >= 2.8.0, <= 2.8.7 | no | nvd | /v1/products/raspap/raspap |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| RaspAP/raspap-webgui | commit, package, pull | yes | /v1/repositories/RaspAP/raspap-webgui |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2023-11-13
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 4
- Public exploit first date: 2023-07-31
- Remote: yes
- Exposed hosts: 7
- Checked, none or zero: known exploited, initial access, authentication required
- Not known: known exploited since, initial access since, hackerone reports