Patchfirst
CVE-2022-39986 Public exploit EPSS 99.1%

A Command injection vulnerability in RaspAP 2.8.0 thru 2.8.7 allows unauthenticated attackers to execute arbitrary…

Fix:upgrade raspap-webgui to 2.8.8 or later Details ↓

Summary

A command injection flaw exists in RaspAP versions 2.8.0 through 2.8.7, in the OpenVPN configuration handling of the activate and delete endpoints (/ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php) via the cfg_id parameter. An unauthenticated attacker who can reach these endpoints over the network can inject and run arbitrary operating system commands by supplying a crafted cfg_id value, with no login, user interaction, or special configuration required.

Official description · CVE.org

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.

Breakdown
60.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 months after disclosure. Public exploit code (Metasploit) was available 1 day before disclosure.

  1. Public exploit codeMetasploit1 day before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+3 mo

See the family tree

3 related vulnerabilities in the same code over 16 months.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2022-39986A Command injection vulnerability in RaspAP 2.8.0 thru 2.8.7…1 Aug 2023
  2. relatedMedium

    Why these are linked:

    CVE-2024-28754RaspAP (aka raspap-webgui) through 3.0.9 allows remote attackers…8 Mar 2024
  3. relatedMedium

    Why these are linked:

    • Same code patched: update_blocklist.php, get_bandwidth.php, get_bandwidth_hourly.php, clearlog.php, do_sys_reset.php (machine-matched)commit d0592b6commit c98d2b0
    CVE-2024-36622In RaspAP raspap-webgui 3.0.9 and earlier, a command injection…29 Nov 2024

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: billz/raspap-webgui.

Packagistbillz/raspap-webguiGHSA-7c28-wg7r-pg6f

Upgrade to 2.8.8 or later

Set the version to 2.8.8 or later in your composer.json.

The first fix for CVE-2022-39986. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
2.8.0 up to 2.8.82.8.8

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close