High severity · published Jun 21, 2023
CVE-2022-25883
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…
7.5
CVSS
2.8%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.8% · higher than 86% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SE
Semver · Npmjs
before 5.7.2; 6.0.0 before 6.3.1; 7.0.0 before 7.5.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-25883
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-25883
Broken Link
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
Patch
https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441
Patch
https://github.com/npm/node-semver/pull/564
Exploit
https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795
