CVE-2022-39987: Command Injection

Published Aug 1, 2023
·
Updated

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/getwgkey.php.

Other sources

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/getwgkey.php.

Affected Software

2 affected componentsFixes available
composer/billz/raspap-webgui>=2.8.0<2.9.5
2.9.5
RaspAP RaspAP>=2.8.0<=2.9.2

Event History

Aug 1, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Advisory Published
03:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-39987?

The severity of CVE-2022-39987 is high with a CVSS score of 8.8.

2

How does the Command injection vulnerability in RaspAP 2.8.0 thru 2.9.2 work?

The vulnerability allows an authenticated attacker to execute arbitrary OS commands as root by exploiting the `entity` POST parameters in `/ajax/networking/get_wgkey.php`.

3

Which software versions are affected by CVE-2022-39987?

RaspAP versions 2.8.0 through 2.9.2 and the composer/billz/raspap-webgui package between versions 2.8.0 and 2.9.2 are affected.

4

Is authentication required to exploit the vulnerability in RaspAP 2.8.0 thru 2.9.2?

Yes, the attacker needs to be authenticated in order to exploit the vulnerability.

5

How can I fix the Command injection vulnerability in RaspAP 2.8.0 thru 2.9.2?

Upgrade RaspAP or composer/billz/raspap-webgui package to a version beyond 2.9.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203