CVE-2022-39987 RaspAP Command Injection vulnerability
Authenticated attackers can execute arbitrary OS commands as root via the get_wgkey.php endpoint in RaspAP.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-39987?
CVE-2022-39987 is a high-severity command injection vulnerability in n/a, published on 1 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A 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 "entity" POST parameters in /ajax/networking/get_wgkey.php.
Weakness: CWE-77
Which versions are affected by CVE-2022-39987?
2 open source packages ship an affected version, including billz/raspap-webgui. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
billz/raspap-webgui Packagist | From 2.8.0 | 2.9.5 |
billz/raspap-webgui Packagist | From 2.8.0 | 2.9.5 |
Products include Raspap Raspap.
How do I fix CVE-2022-39987?
Upgrade billz/raspap-webgui to 2.9.5 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-39987 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39987 exists.
Other vulnerabilities in n/a
- CVE-2022-39986 RaspAP Command Injection vulnerability
- CVE-2021-33357 Command injection in n/a
- CVE-2023-30260 RaspAP raspap-webgui Command Injection vulnerability
- CVE-2021-38556 Command Injection in RaspAP 2.6.6
- CVE-2021-38557 raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions.
Sources
Also known as GHSA-7r88-wjhj-jr8m.