← Vulnerability feed

Vulnerability record · CVE-2022-39986 · published 1 August 2023

CVE-2022-39986: RaspAP unauthenticated command injection in OpenVPN config AJAX endpoints

Raspap · Raspap

RaspAP 2.8.0 through 2.8.7 passes the cfg_id parameter unsanitized into shell commands in /ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php, allowing command injection. Because the endpoints are reachable without authentication, any network-adjacent attacker can run arbitrary commands on the device.

9.8 CVSS 3.1 Critical EPSS 99% · top 0.1% CWE-77 · Command injection
9.8CVSS 3.1 base score
99%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

critical priorityUnauthenticated remote command execution with a 9.8 CVSS score and near-maximum EPSS probability makes this an urgent patch-or-isolate case.

What it is

RaspAP 2.8.0 through 2.8.7 passes the cfg_id parameter unsanitized into shell commands in /ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php, allowing command injection. Because the endpoints are reachable without authentication, any network-adjacent attacker can run arbitrary commands on the device.

Impact

An attacker gains arbitrary command execution with the privileges of the web server, which on RaspAP deployments typically means full control of the underlying Raspberry Pi and any network traffic it routes.

Attack surface

Reached over the network via HTTP requests to the two AJAX endpoints with a crafted cfg_id parameter; no authentication or user interaction is required per the CVSS vector (AV:N/PR:N/UI:N).

Exploitation

Not listed in CISA KEV and no ransomware association is documented, but EPSS is very high (0.99034, 99.93rd percentile), indicating strong likelihood of exploitation; public proof-of-concept material is referenced via Packet Storm.

What to do

  • Upgrade RaspAP past 2.8.7 to a version where cfg_id is validated or parameterized; verify the fix in the vendor repository before relying on it.
  • If immediate upgrade is not possible, restrict access to the /ajax/openvpn/ endpoints and the RaspAP web interface to trusted management networks only.
  • Place the RaspAP interface behind authentication at a reverse proxy and block direct access to the AJAX paths from untrusted networks.
  • Monitor RaspAP releases and advisories for a confirmed patched version, since the record does not name one.
  • Run the RaspAP service with least privilege and isolate the device on a segmented network to limit post-exploitation reach.

Detection

  • Inspect web server and proxy logs for requests to /ajax/openvpn/activate_ovpncfg.php or /ajax/openvpn/del_ovpncfg.php containing shell metacharacters in cfg_id.
  • Alert on unexpected child processes spawned by the web server user (for example shell, curl, wget, nc) on RaspAP hosts.
  • Monitor for outbound connections or new listening services originating from the RaspAP device that are inconsistent with its normal routing role.
  • Audit file integrity of RaspAP web files and cron or startup entries for changes following suspicious AJAX requests.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-39986 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-33357Raspap os command injection vulnerabilityA vulnerability exists in RaspAP 2.6 to 2.6.5 in the "iface" GET parameter in /ajax/networking/get_netcfg.php, when the "iface" parameter value conta…EPSS 17%8.8CVE-2022-39987Raspap command injection vulnerabilityA Command injection vulnerability in RaspAP 2.8.0 thru 2.9.2 allows an authenticated attacker to execute arbitrary OS commands as root via the "entit…EPSS 37%8.8CVE-2023-30260Raspap command injection vulnerabilityCommand injection vulnerability in RaspAP raspap-webgui 2.8.8 and earlier allows remote attackers to run arbitrary commands via crafted POST request …EPSS 2.5%8.8CVE-2021-38556Raspap command injection vulnerabilityincludes/configure_client.php in RaspAP 2.6.6 allows attackers to execute commands via command injection.EPSS 13%8.8CVE-2021-38557Raspap incorrect permission assignment vulnerabilityraspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions. The www-data account can exec…EPSS 2.2%8.8CVE-2021-33356Raspap improper privilege management vulnerabilityMultiple privilege escalation vulnerabilities in RaspAP 1.5 to 2.6.5 could allow an authenticated remote attacker to inject arbitrary commands to /in…EPSS 5.3%8.8CVE-2021-33358Raspap os command injection vulnerabilityMultiple vulnerabilities exist in RaspAP 2.3 to 2.6.5 in the "interface", "ssid" and "wpa_passphrase" POST parameters in /hostapd, when the parameter…EPSS 2.7%8.8CVE-2020-24572Raspap os command injection vulnerabilityAn issue was discovered in includes/webconsole.php in RaspAP 2.5. With authenticated access, an attacker can use a misconfigured (and virtually unres…EPSS 6.8%

Source: NIST National Vulnerability Database (record CVE-2022-39986), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.