CVE-2022-39986 is a command-injection vulnerability affecting RaspAP versions 2.8.0 through 2.8.7. Insufficient handling of the cfg_id parameter in OpenVPN configuration activation and deletion functionality permits unauthenticated attackers to inject and execute arbitrary commands.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains an operational exploit toolkit targeting RaspAP installations vulnerable to CVE-2022-39986. The main script, 'raspap_hunter.sh', is a Bash script that automates the process of discovering vulnerable RaspAP instances using Shodan, testing them for the vulnerability, and, if found, deploying a PHP reverse shell payload ('php-reverse-shell.php') to gain remote shell access. The script checks for required dependencies, downloads the reverse shell payload if missing, and uses ngrok to facilitate a reverse TCP connection. The exploit works by abusing the '/ajax/openvpn/del_ovpncfg.php' endpoint on the target to execute arbitrary commands, including downloading and running the reverse shell. The repository structure is straightforward, with the main Bash exploit script, the PHP reverse shell payload, and supporting documentation. The exploit is operational and provides a working remote shell if the target is vulnerable and accessible.
This repository contains a single Metasploit module (raspap_rce.rb) that exploits an unauthenticated command injection vulnerability (CVE-2022-39986) in RaspAP versions 2.8.0 through 2.8.7. The exploit targets the /ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php endpoints, abusing the 'cfg_id' POST parameter to inject and execute arbitrary commands as the user running RaspAP. The module supports both direct command execution and staged payloads (such as reverse shells) using Metasploit's payload system. No authentication is required, and the exploit is effective against default installations of the vulnerable RaspAP versions. The code is written in Ruby and is structured as a standard Metasploit exploit module, making it easily customizable and weaponized for offensive security testing.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.