elecV2 elecV2P Remote Command Injection Vulnerability

Vulnerability

A remote code execution vulnerability has been identified in elecV2 elecV2P versions through 3.8.3. The issue arises in the 'pm2run' method of the '/rpc' endpoint, which lacks authentication and improperly sanitizes input. This flaw allows for OS command injection, as demonstrated by a proof-of-concept that successfully executed a command to read the '/etc/passwd' file.

Impact

Exploitation of this vulnerability allows for unauthorized remote code execution on the server where elecV2P is running.

Reproduction

To reproduce this vulnerability, send a POST request to the '/rpc' endpoint with the 'pm2run' method. Include a payload in the 'params' array that consists of a command to be executed on the server, such as 'cat /etc/passwd'. The response will include the output of the executed command, confirming the successful exploitation of the vulnerability.

Added: Mar 28, 2026, 8:19 PM
Updated: Mar 28, 2026, 8:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
4.7
threat
6.4
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.