CVE-2022-25883
nodejs-semver: Regular expression denial of service
Severity Score
7.5
*CVSS v3.1
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
1
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
-
*SSVC
Descriptions
Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in node-semver package via the 'new Range' function. This issue could allow an attacker to pass untrusted malicious regex user data as a range, causing the service to excessively consume CPU depending upon the input size, resulting in a denial of service.
*Credits:
Alessio Della Libera - Snyk Research Team
CVSS Scores
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:-
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2022-02-24 CVE Reserved
- 2023-06-21 CVE Published
- 2024-10-22 EPSS Updated
- 2024-10-25 CVE Updated
- 2024-10-25 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-1333: Inefficient Regular Expression Complexity
CAPEC
References (8)
URL | Tag | Source |
---|---|---|
https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104 | Broken Link | |
https://github.com/npm/node-semver/blob/main/internal/re.js%23L138 | Broken Link | |
https://github.com/npm/node-semver/blob/main/internal/re.js%23L160 | Broken Link |
URL | Date | SRC |
---|---|---|
https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 | 2024-10-25 |
URL | Date | SRC |
---|---|---|
https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441 | 2023-11-07 | |
https://github.com/npm/node-semver/pull/564 | 2023-11-07 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2022-25883 | 2024-08-29 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2216475 | 2024-08-29 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Npmjs Search vendor "Npmjs" | Semver Search vendor "Npmjs" for product "Semver" | < 5.7.2 Search vendor "Npmjs" for product "Semver" and version " < 5.7.2" | node.js |
Affected
| ||||||
Npmjs Search vendor "Npmjs" | Semver Search vendor "Npmjs" for product "Semver" | >= 6.0.0 < 6.3.1 Search vendor "Npmjs" for product "Semver" and version " >= 6.0.0 < 6.3.1" | node.js |
Affected
| ||||||
Npmjs Search vendor "Npmjs" | Semver Search vendor "Npmjs" for product "Semver" | >= 7.0.0 < 7.5.2 Search vendor "Npmjs" for product "Semver" and version " >= 7.0.0 < 7.5.2" | node.js |
Affected
|