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

CVE-2022-25762

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

Descrizione

If a web application sends a WebSocket message concurrently with the WebSocket connection closing when running on Apache Tomcat 8.5.0 to 8.5.75 or Apache Tomcat 9.0.0.M1 to 9.0.20, it is possible that the application will continue to use the socket after it has been closed. The error handling triggered in this case could cause the a pooled object to be placed in the pool twice. This could result in subsequent connections using the same object concurrently which could result in data being returned to the wrong use and/or other errors.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apache tomcat >= 8.5.0 < 8.5.76 –
apache tomcat >= 9.0.0 < 9.0.21 –
oracle agile product lifecycle management 9.3.6 –
Tutte le 274 vulnerabilità di Apache Tomcat

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