SecurityContext

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

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2023-11-13—no

Nuclei templates

IdUrl
CVE-2022-39986https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yaml

Public exploits

UrlSourceAdded date
https://github.com/mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCEpoc-in-github2023-08-24
https://github.com/mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE.gitvulncheck-xdb2023-08-24
https://github.com/tucommenceapousser/RaspAP-CVE-2022-39986-PoC.gitvulncheck-xdb2023-08-16
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/raspap_rce.rbmetasploit2023-07-31

References

UrlSourceTags
https://github.com/RaspAP/raspap-webgui/blob/master/ajax/openvpn/activate_ovpncfg.phpnvdVendor Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yamlnuclei_templateNuclei Template
https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2022-39986vulncheckVulncheck Reported Exploitation
https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-39986vulncheckVulncheck Reported Exploitation
http://packetstormsecurity.com/files/174190/RaspAP-2.8.7-Unauthenticated-Command-Injection.htmlnvd
https://medium.com/%40ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2nvd

Products

ProductAffectedPlatform boundSourcesUrl
raspap:raspap>= 2.8.0, <= 2.8.7nonvd/v1/products/raspap/raspap

Projects

RepositoryLink kindsIndexedUrl
RaspAP/raspap-webguicommit, package, pullyes/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

Nuclei template