S4E just found a medium-severity finding from cookies without secure attribute security misconfiguration scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Mar 4, 2024

CVE-2022-39986 Scanner

Targets the cfg_id parameter in RaspAP's PHP files, allowing unauthenticated attackers to execute arbitrary system commands on the Raspberry Pi.

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.9k
Times Used
continuous scan runs
5.9k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2022-39986
9.8
CVSS

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.

Attack Vector
-
Privileges Req.
-
User Interaction
-
Affected
n/aby n/a
n/a
Updated Aug 22, 2026View on NVD →
Detail

RaspAP is an open-source software solution that allows users to easily set up a wireless access point on Raspberry Pi devices, providing a web-based interface for managing Wi-Fi networking functions. It is widely used by hobbyists, educators, and professionals for creating Wi-Fi hotspots, offering features like SSID broadcasting, password management, and DHCP server configuration. RaspAP is praised for its simplicity and flexibility, enabling quick deployment of Wi-Fi networks for a variety of applications such as home automation, educational labs, and small office setups.

The CVE-2022-39986 vulnerability in RaspAP versions 2.8.0 to 2.8.7 allows unauthenticated attackers to perform command injection attacks. This flaw is due to improper validation of user input in the cfg_id parameter within specific PHP files. Attackers can exploit this vulnerability to execute arbitrary commands on the underlying operating system without needing any authentication, making it a critical security issue.

Specifically, the vulnerability resides in the handling of the cfg_id parameter in the RaspAP web interface. The affected PHP files fail to sanitize or validate the input before passing it to system-level functions, such as exec() or shell_exec(). This allows an attacker to inject malicious commands by crafting a specially crafted HTTP request to the vulnerable endpoint, leading to remote code execution.

If exploited, an attacker can gain full control over the Raspberry Pi device running RaspAP. This includes the ability to install malware, exfiltrate sensitive data, pivot to other devices on the network, or disrupt Wi-Fi services. Given the CVSS score of 9.8, this vulnerability poses a severe risk to the integrity and security of networks utilizing RaspAP.

Solution Advice
  • Immediately upgrade RaspAP to version 2.8.8 or later, which patches the CVE-2022-39986 vulnerability.
  • Implement strict input validation and sanitization for all user-supplied parameters, especially cfg_id, to prevent command injection.
  • Disable unnecessary PHP functions like exec(), shell_exec(), and system() in the php.ini configuration if not required.
  • Enforce strong authentication and authorization controls for all web interface endpoints, even if they are intended for internal use.
  • Regularly audit and update all software components, including the operating system and dependencies, to their latest secure versions.
  • Deploy a web application firewall (WAF) to detect and block malicious requests targeting command injection vulnerabilities.
  • Monitor system logs for unusual command execution attempts and set up alerts for suspicious activities.
  • Consider network segmentation to isolate Raspberry Pi devices running RaspAP from critical systems.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

RaspAP CVE-2022-39986 Scanner | S4E Free Check