{"id":"CVE-2022-39986","published":"2023-08-01T00:00:00Z","modified":"2024-10-21T14:32:09Z","title":"A Command injection vulnerability in RaspAP 2.8.0 thru 2.8.7 allows unauthenticated attackers to execute arbitrary…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-21T14:31:56.932403Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"A command injection flaw exists in RaspAP versions 2.8.0 through 2.8.7, in the OpenVPN configuration handling of the activate and delete endpoints (/ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php) via the cfg_id parameter. An unauthenticated attacker who can reach these endpoints over the network can inject and run arbitrary operating system commands by supplying a crafted cfg_id value, with no login, user interaction, or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:17:41Z"},"cvss":null,"epss":{"score":0.99058,"percentile":0.99932,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-11-13","exploitedFirstSeen":"2023-11-13","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-39986","date":"2023-11-13"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://github.com/RaspAP/raspap-webgui/blob/master/ajax/openvpn/activate_ovpncfg.php","tags":[]},{"url":"https://medium.com/%40ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2","tags":[]},{"url":"http://packetstormsecurity.com/files/174190/RaspAP-2.8.7-Unauthenticated-Command-Injection.html","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"billz/raspap-webgui","vulnerableRanges":[">=2.8.0, <2.8.8"],"patched":["2.8.8"],"from":["GHSA-7c28-wg7r-pg6f"],"provenance":"source"}],"advisories":[{"id":"GHSA-7c28-wg7r-pg6f","url":"https://github.com/advisories/GHSA-7c28-wg7r-pg6f","severity":"CRITICAL","ecosystem":"Packagist","package":"billz/raspap-webgui","vulnerableRanges":[">=2.8.0, <2.8.8"],"patched":["2.8.8"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2023-2233","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-2233","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-08-24","earliestUrl":"https://github.com/mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE","repos":[{"name":"mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE","url":"https://github.com/mind2hex/CVE-2022-39986-RaspAP-2.8.0-2.8.7-RCE","stars":0,"created":"2023-08-24"}]},"metasploit":[{"name":"RaspAP Unauthenticated Command Injection","module":"exploit/unix/http/raspap_rce","type":"exploit","disclosureDate":"2023-07-31","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/raspap_rce.rb"}],"nuclei":[{"id":"CVE-2022-39986","name":"RaspAP 2.8.7 - Unauthenticated Command Injection","severity":"critical","path":"http/cves/2022/CVE-2022-39986.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yaml"}],"first":{"date":"2023-07-31","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/raspap_rce.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/174190/RaspAP-2.8.7-Unauthenticated-Command-Injection.html"],"flow":[],"timeline":[{"date":"2023-07-31","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2023-08-24","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/raspap_rce.rb","provenance":"source"},{"date":"2023-08-01","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-39986","provenance":"source"},{"date":"2023-11-13","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-39986","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":60.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1107 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.99,"detail":"percentile 0.9993"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 1 PoC-in-GitHub repo; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-billz-raspap-webgui-cve-2022-39986","children":[{"from":"CVE-2022-39986","to":"CVE-2024-28754","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ajax/logging/clearlog.php","ajax/openvpn/activate_ovpncfg.php","ajax/openvpn/del_ovpncfg.php"],"commits":["https://github.com/RaspAP/raspap-webgui/commit/1fabc481690e008279113e18d0642c5279e3b56e","https://github.com/RaspAP/raspap-webgui/commit/d0592b63de9a5da587ab3a51e03e7e566c7f3602"],"basis":"rarely changed file"}]},{"from":"CVE-2022-39986","to":"CVE-2024-36622","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ajax/logging/clearlog.php","ajax/openvpn/activate_ovpncfg.php","ajax/openvpn/del_ovpncfg.php"],"commits":["https://github.com/RaspAP/raspap-webgui/commit/1fabc481690e008279113e18d0642c5279e3b56e","https://github.com/raspap/raspap-webgui/commit/c98d2b0c15942b4829d31dec615b9b40cc6faa14"],"basis":"rarely changed file"}]}]}}