PT-2023-18562

CVE-2023-22578

·

Publicado

2023-02-16

·

Atualizado

2023-03-03

Descrição por

CVSS 3.1
10
Crítica
MétricasAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Sequelize versions prior to 6.29.0 Sequelize versions prior to 7.0.0.alpha-20
Description The issue is due to improper attribute filtering in the Sequelize JS library, allowing an attacker to perform SQL injections. This can be exploited when using parentheses in the attribute option, causing Sequelize to use the string as-is in the SQL. For example, using the attributes option with a value like ['count(id)', 'count'] can lead to SQL injection. The estimated number of potentially affected devices is not provided.
Recommendations For Sequelize versions prior to 6.29.0, update to version 6.29.0 or later to patch the issue. For Sequelize versions prior to 7.0.0.alpha-20, update to version 7.0.0.alpha-20 or later to patch the issue. As a temporary workaround, do not use user-provided content to build your list of attributes. If you do, make sure that the attribute in question actually exists on your model by checking that it exists in the rawAttributes property of your model first.
Explorabilidade
Exploit
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
GHSA-8MWQ-MJ73-QV68
GHSA-F598-MFPV-GMFX
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾