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.
Published: 2026-08-10
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 10 Aug 2026 11:00:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T10:56:39.956Z

Reserved: 2026-08-10T10:32:53.853Z

Link: CVE-2026-72573

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T13:00:04Z

Weaknesses
  • CWE-78

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