Отложенный обратный звонок use-after-destroy в Node.js TLS позволяет удаленному, не аутентифицированному злоумышленнику завершить серверный процесс. Когда сервер TLS использует любой из крюков SNICallback, OCSPRequest, newSession, или resumeSession, или server.addContext(), соответствующие обратные вызовы OpenSSL откладываются, и отложенный код не обрабатывает базовый сокет, уничтожаемый между планированием и выполнением. Отправляя клиенту привет, который достигает уязвимого пути (например, нет SNI вместе с запросом OCSP), за которым следует заполнение и сокет FIN, злоумышленник заставляет OpenSSL доставить клиенту привет и end-of-file в том же галочке, поэтому сокет уничтожается до запуска отложенного обратного вызова, и процесс вызывает незахваченное исключение вместо выпуска события 'error'.
Эта уязвимость затрагивает Node.js 26.x и 24.x.
Показать оригинальное описание (EN)
A deferred-callback use-after-destroy in Node.js TLS server handshake handling allows a remote, unauthenticated attacker to terminate the server process. When a TLS server uses any of the SNICallback, OCSPRequest, newSession, or resumeSession hooks, or server.addContext(), the corresponding OpenSSL callbacks are deferred, and the deferred code does not handle the underlying socket being destroyed between scheduling and execution. By sending a client hello that reaches the vulnerable path (for example, no SNI together with an OCSP request) followed by padding and a socket FIN, an attacker makes OpenSSL deliver the client hello and the end-of-file in the same tick, so the socket is destroyed before the deferred callback runs and the process raises an uncaught exception instead of emitting an 'error' event. This vulnerability affects Node.js 26.x and 24.x.
Характеристики атаки
Последствия
Строка CVSS v3.0