PT-2023-4569 · Npm+6 · Semver+7
Alessio Della Libera
·
Published
2023-06-21
·
Updated
2026-03-17
·
CVE-2022-25883
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
semver versions prior to 7.5.2
semver versions prior to 6.3.1 on the 6.x branch
semver versions prior to 5.7.2
Description
The issue is related to the use of a regular expression with inefficient computational complexity in the semver package, which can lead to a Regular Expression Denial of Service (ReDoS) via the
new Range function when untrusted user data is provided as a range. This can allow a remote attacker to cause a denial of service.Recommendations
For semver versions prior to 7.5.2, update to version 7.5.2 or later.
For semver versions prior to 6.3.1 on the 6.x branch, update to version 6.3.1 or later.
For semver versions prior to 5.7.2, update to version 5.7.2 or later.
As a temporary workaround, consider restricting the use of the
new Range function to trusted input only until a patch is available.Exploit
Fix
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Almalinux
Bitbucket
Centos
Confluence
Debian
Red Hat
Rocky Linux
Semver