Ошибка повторного входа в Node.js HTTPS позволяет не аутентифицированному клиенту читать память, принадлежащую другим соединениям, включая закрытые ключи TLS и запросы других пользователей. 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. Затем сервер копирует освобожденную или несвязанную память в ответ для тела запроса.
Для его запуска требуется обработчик, который вызывает res.flushHeaders() перед окончанием тела запроса, а затем вызывает res.end() с непустым фрагментом, а для чтения просочившейся памяти требуется любой обычный маршрут, который повторяет или сохраняет тело запроса. Узел Cleartext: HTTP не затронут. Эта уязвимость затрагивает Node.js 26.x, 24.x и 22.x.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.0