CVE-2022-39986 — Vulnerability in billz/raspap-webgui — CVE Details
RaspAP Command Injection vulnerability
What Should I Do?
Fix in Your Next Sprint
This vulnerability has a 78.16% chance of being exploited within 30 days.
Does your project use an affected billz/raspap-webgui version?
Paste your composer.lock to check it for CVE-2022-39986 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published August 1, 2023 (1213 days ago).
- Last revised February 16, 2024 — 199 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "billz/raspap-webgui:^2.8.8"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| billz/raspap-webgui Packagist · Affected: 2.8.0, 2.8.1, 2.8.2, 2.8.3 (+4 more) | 2.8.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-39986ADVISORY
- https://github.com/RaspAP/raspap-webgui/pull/1303WEB
- https://github.com/RaspAP/raspap-webgui/commit/1fabc481690e008279113e18d0642c5279e3b56eWEB
- https://github.com/RaspAP/raspap-webguiPACKAGE
- https://github.com/RaspAP/raspap-webgui/blob/master/ajax/openvpn/activate_ovpncfg.phpWEB
- https://medium.com/@ismael0x00/multiple-vulnerabilities-in-raspap-3c35e78809f2WEB
Frequently Asked Questions
- What is CVE-2022-39986?
- RaspAP Command Injection vulnerability. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-39986?
- CVE-2022-39986 affects billz/raspap-webgui. It has a 78.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-39986 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2024-41637CRITICAL
RaspAP allows an attacker to escalate privileges
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63413CRITICAL
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-24788HIGH
RaspAP raspap-webgui contains an OS Command Injection vulnerability