Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted HTTP request with long string
-
ExploitTrigger regex backtracking in Config.js
-
ExecutionConsume excessive CPU
-
ImpactDenial of service for pm2 process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attack requires the attacker to have network access to a pm2 instance that accepts configuration input via the Config.js module. No authentication is required (CVSS PR:L indicates low privileges, but the description suggests remote unauthenticated access). The specific condition is that the pm2 process must be configured to accept external configuration values that are processed by the vulnerable regex in Config.js. |
| Impact | The CVSS 4.0 vector indicates a low base score of 2.1, with low attack complexity, no privileges required, and no user interaction, but only low availability impact. The EPSS score is 0.12% (31st percentile), suggesting low exploitation probability. A public exploit exists, but there is no evidence of active exploitation (not in CISA KEV). The SSVC decision would likely be 'low' for exploitation status and 'partial' for technical impact. Overall, this is a low-risk issue despite the public exploit, as it only causes denial of service and requires specific crafted input. |
| Exploit ScenarioDerived | An attacker sends a crafted HTTP request to a pm2 endpoint that processes configuration values, providing a long string of 'a's followed by '='. This triggers the vulnerable regex, causing high CPU usage and denial of service. The public exploit code demonstrates this with a 100,000-character string. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 26, 2026
Inefficient regular expression complexity in Unitech pm2 up to 6.0.6 allows remote attackers to cause a denial of service via crafted input to the Config.js file. A publicly available exploit exists, but no active exploitation has been confirmed. EPSS score is low (0.12%), indicating limited exploitation likelihood.
Earlier versions of this analysis (1)
RemediationAI
Upgrade to pm2 version 6.0.7 or later, which includes the fix from pull request #5971. The patch modifies the regex in Config.js to prevent catastrophic backtracking. No workarounds are documented; however, restricting access to the configuration endpoint or input validation could mitigate the risk. The advisory is available at https://github.com/Unitech/pm2/pull/5971.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the Config.js file of pm2, a popular Node.js process manager. The issue is a Regular Expression Denial of Service (ReDoS) attack, classified under CWE-400 (Uncontrolled Resource Consumption). The affected code uses a regex to split configuration values, which can be forced into catastrophic backtracking with a specially crafted long string, leading to excessive CPU consumption. The CPE string cpe:2.3:a:keymetric:pm2:*:*:*:*:*:*:*:* indicates the product is pm2 by Keymetric, though pm2 is commonly associated with Unitech. The vulnerability affects versions 6.0.0 through 6.0.6.
Know when Pm2 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Remote, low complexity, no privileges, no user interaction, only availability impact.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A vulnerability classified as problematic was found in Unitech pm2 up to 6.0.6. This vulnerability affects unknown code of the file /lib/tools/Config.js. The manipulation leads to inefficient regular expression complexity. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
Organizations using Unitech pm2 should be aware of moderate risk from CVE-2025-5891, a resource exhaustion vulnerability rated CVSS 4.3. Service availability could be impacted. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: implement rate limiting and resource quotas.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2025-17577
GHSA-x5gf-qvw8-r2rm
NVD
CVE.org
EPSS
VulDB
Exploit-DB