Incorrect Regular Expression in Semver - CVE-2022-25883

 

Incorrect Regular Expression in Semver - CVE-2022-25883

Published: August 3, 2023 / Updated: November 30, 2023


Vulnerability identifier: #VU78932
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-25883
CWE-ID: CWE-185
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: npm Inc.
Affected software:
Semver

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing regular expressions. A remote attacker can pass specially crafted data to the application via the new Range function and perform regular expression denial of service (ReDos) attack.


How to mitigate CVE-2022-25883

Install update from vendor's website.

Sources