CVE-2026-72573

4xmen pm2panel - Authenticated OS Command Injection via id Query Parameter

Published Aug 10, 2026 CVSS 3.1 · 8.8 High EPSS 1.6% KEV · Not listed
Description
An OS command injection vulnerability in 4xmen/pm2panel (all versions) allows an authenticated remote attacker to execute arbitrary system commands on the host. The pm2panel.js handler at line 188 passes the unsanitized req.query.id parameter directly to exec('pm2 restart ' + id) without input validation or shell escaping, enabling command chaining via semicolons or other shell metacharacters.

Analysis

AI-generated

Technical impact

The vulnerability is a classic OS command injection in 4xmen's pm2panel, allowing an attacker who has authenticated to the web interface to run arbitrary system commands on the host. By sending an id query parameter that is concatenated into a shell command without validation or escaping, the attacker can inject shell metacharacters and chain commands. The impact is full compromise of the host’s confidentiality, integrity, and availability because any command that the service’s user can run may be executed.

Affected Systems

All versions of the 4xmen pm2panel application are affected. The specific component is the pm2panel.js handler (line 188) which passes the unsanitized req.query.id directly to a shell command. The vendor is 4xmen and the product is pm2panel.

Risk and Exploitability

The CVSS score of 8.8 classifies the flaw as high severity. The EPSS score is not available, and it is not listed in the CISA KEV catalog. The vulnerability requires an authenticated user on the web interface; the CVE description does not detail how the attacker gains credentials, so the methods remain speculative. No public exploit has been disclosed yet, but the simple mechanics suggest that an attacker could automate the injection once authenticated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Restrict access to the pm2panel management interface by firewall or VPN so that only trusted IPs or internal networks can authenticate.
  • Apply an updated version of pm2panel once an official patch is released, or manually patch pm2panel.js to validate the id parameter against a whitelist and remove the use of shell exec.
  • If a patch is not yet available, disable the restart functionality by removing or protecting the /pm2panel route, or run pm2 through its programmatic API instead of a shell command.
  • Monitor system logs for unusual pm2 restart commands or other commands executed via the shell, and isolate affected hosts if compromised.

Generated by OpenCVE AI on August 10, 2026 at 12:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared 4xmen
4xmen pm2panel
Vendors & Products 4xmen
4xmen pm2panel
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An OS command injection vulnerability in 4xmen/pm2panel (all versions) allows an authenticated remote attacker to execute arbitrary system commands on the host. The pm2panel.js handler at line 188 passes the unsanitized req.query.id parameter directly to exec('pm2 restart ' + id) without input validation or shell escaping, enabling command chaining via semicolons or other shell metacharacters.
Title 4xmen pm2panel - Authenticated OS Command Injection via id Query Parameter
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 6:22 PM
Reserved
Aug 10, 2026, 10:32 AM
Status
Deferred
Published
Aug 10, 2026, 11:17 AM
Modified
Oct 24, 2026, 3:10 PM