1. Archivio CVE
  2. 2021
  3. CVE-2021-3794

CVE-2021-3794

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – Alta

Descrizione

vuelidate is vulnerable to Inefficient Regular Expression Complexity

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
vuelidate project vuelidate < 0.7.7 –
vuelidate project vuelidate 1.0.0 alpha1 node.js
vuelidate project vuelidate 1.0.0 alpha2 node.js
vuelidate project vuelidate 2.0.0 alpha0 node.js
vuelidate project vuelidate 2.0.0 alpha1 node.js
vuelidate project vuelidate 2.0.0 alpha10 node.js
vuelidate project vuelidate 2.0.0 alpha11 node.js
vuelidate project vuelidate 2.0.0 alpha12 node.js
vuelidate project vuelidate 2.0.0 alpha13 node.js
vuelidate project vuelidate 2.0.0 alpha14 node.js
vuelidate project vuelidate 2.0.0 alpha15 node.js
vuelidate project vuelidate 2.0.0 alpha16 node.js
vuelidate project vuelidate 2.0.0 alpha17 node.js
vuelidate project vuelidate 2.0.0 alpha18 node.js
vuelidate project vuelidate 2.0.0 alpha19 node.js
vuelidate project vuelidate 2.0.0 alpha2 node.js
vuelidate project vuelidate 2.0.0 alpha20 node.js
vuelidate project vuelidate 2.0.0 alpha21 node.js
vuelidate project vuelidate 2.0.0 alpha22 node.js
vuelidate project vuelidate 2.0.0 alpha23 node.js
vuelidate project vuelidate 2.0.0 alpha24 node.js
vuelidate project vuelidate 2.0.0 alpha25 node.js
vuelidate project vuelidate 2.0.0 alpha3 node.js
vuelidate project vuelidate 2.0.0 alpha5 node.js
vuelidate project vuelidate 2.0.0 alpha6 node.js
vuelidate project vuelidate 2.0.0 alpha7 node.js
vuelidate project vuelidate 2.0.0 alpha8 node.js
vuelidate project vuelidate 2.0.0 alpha9 node.js

Tipo di vulnerabilità

CWE-1333 Espressione regolare inefficiente (ReDoS)

Il prodotto usa un’espressione regolare che nel caso peggiore ha una complessità di calcolo molto alta, anche esponenziale: un input costruito ad arte può bloccare il servizio.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: esaurimento della CPU

Come si previene

Architettura e progettazione Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
Configurazione del sistema Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Sviluppo Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
Sviluppo Limit the length of the input that the regular expression will process.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 539 CVE di tipo CWE-1333, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org