PT-2023-4569 · Npm+6 · Semver+7
Alessio Della Libera
·
Publicado
2023-06-21
·
Atualizado
2026-06-04
·
CVE-2022-25883
CVSS v2.0
7.8
Alta
| Vetor | 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
Correção
DoS
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Almalinux
Bitbucket
Centos
Confluence
Debian
Red Hat
Rocky Linux
Semver