Descrizione
A re-entrancy flaw in Node.js HTTPS lets an unauthenticated client read memory belonging to other connections, including TLS private keys and other users' requests. TLSWrap::DoWrite() calls ClearOut() directly when asked to write zero bytes; if that write is issued from JavaScript running inside the HTTP parser's on_body callback, ClearOut() decrypts the next TLS record while the parser is still mid-body, re-entering llhttp_execute() and causing a use-after-free and an out-of-bounds heap read. The server then copies that freed or unrelated heap memory into the response for the request body. Triggering it requires a handler that calls res.flushHeaders() before the request body ends and later calls res.end() with a non-empty chunk, and reading the leaked memory requires any ordinary route that echoes or stores a request body. Cleartext node:http is not affected. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.4% (percentile 31).
Versioni da aggiornare
- nodejs node: vulnerabili le versioni dalla
0.0.0precedenti alla22.23.5→ aggiornare alla22.23.5o successiva. - nodejs node: vulnerabili le versioni dalla
23.0.0precedenti alla24.22.3→ aggiornare alla24.22.3o successiva. - nodejs node: vulnerabili le versioni dalla
25.0.0precedenti alla26.13.1→ aggiornare alla26.13.1o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| nodejs | node | ≥ 0.0.0 < 22.23.5 | 22.23.5 |
| nodejs | node | ≥ 23.0.0 < 24.22.3 | 24.22.3 |
| nodejs | node | ≥ 25.0.0 < 26.13.1 | 26.13.1 |