1. Archivio CVE
  2. 2022
  3. CVE-2022-23634

CVE-2022-23634

5.9 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N 5.9 – Media

Descrizione

Puma is a Ruby/Rack web server built for parallelism. Prior to `puma` version `5.6.2`, `puma` may not always call `close` on the response body. Rails, prior to version `7.0.2.2`, depended on the response body being closed in order for its `CurrentAttributes` implementation to work correctly. The combination of these two behaviors (Puma not closing the body + Rails' Executor implementation) causes information leakage. This problem is fixed in Puma versions 5.6.2 and 4.3.11. This problem is fixed in Rails versions 7.02.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2. Upgrading to a patched Rails _or_ Puma version fixes the vulnerability.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 9.0 –
debian debian linux 10.0 –
debian debian linux 11.0 –
fedoraproject fedora 35 –
fedoraproject fedora 36 –
fedoraproject fedora 37 –
puma puma < 4.3.11 ruby
puma puma >= 5.0.0 < 5.6.2 ruby
rubyonrails rails >= 5.0.0 < 5.2.6.2 –
rubyonrails rails >= 6.0.0 < 6.0.4.6 –
rubyonrails rails >= 6.1.0 < 6.1.4.6 –
rubyonrails rails >= 7.0.0 < 7.0.2.2 –
Tutte le 118 vulnerabilità di Rubyonrails Rails
Tutte le 14 vulnerabilità di Puma

Tipo di vulnerabilità

CWE-404 Chiusura o rilascio improprio di una risorsa

Il prodotto non rilascia, o rilascia in modo errato, una risorsa prima che venga resa disponibile per un nuovo uso.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Altro Interruzione del servizio: esaurimento di risorse, Dipende dal contesto
Riservatezza Leggere i dati dell’applicazione

Come si previene

Requisiti · Scelta del linguaggio Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Sviluppo It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Sviluppo Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Sviluppo When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.

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

Tutte le 733 CVE di tipo CWE-404, con andamento e prevenzione

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