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

CVE-2021-41817

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

Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 9.0 –
debian debian linux 10.0 –
debian debian linux 11.0 –
fedoraproject fedora 34 –
fedoraproject fedora 35 –
opensuse factory tutte –
opensuse leap 15.2 –
redhat enterprise linux 7.0 –
redhat enterprise linux 8.0 –
redhat software collections tutte –
ruby-lang date < 2.0.1 ruby
ruby-lang date >= 3.0.0 < 3.0.2 ruby
ruby-lang date >= 3.1.0 < 3.1.2 ruby
ruby-lang date 3.2.0 ruby
ruby-lang ruby >= 2.6.0 < 2.6.9 –
ruby-lang ruby >= 2.7.0 < 2.7.5 –
ruby-lang ruby >= 3.0.0 < 3.0.3 –
suse linux enterprise 12.0 –
suse linux enterprise 15.0 –
Tutte le 94 vulnerabilità di Ruby-lang Ruby

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 541 CVE di tipo CWE-1333, con andamento e prevenzione

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