use-after-free в Node.js HTTP/2 позволяет неаутентифицированному клиенту повреждать память сервера, как по TLS, так и по чистому тексту, когда сервер обслуживает файлы с respondWithFile() или respondWithFD(). Клиент может сделать сервер свободным Http2Stream, в то время как запрос на запись, который указывает на него, все еще стоит в очереди на сокете; когда эта запись завершается, код сбрасывает ссылки и делает виртуальный вызов через освобожденный объект. Единственным условием является то, что приложение обслуживает файл с stream.respondWithFile() или stream.respondWithFD(), с настройками по умолчанию в противном случае.
Эта уязвимость затрагивает Node.js 26.x (с 26.9.0) и 24.x (с 24.22.0).
Показать оригинальное описание (EN)
A use-after-free in Node.js HTTP/2 lets an unauthenticated client corrupt server memory, over both TLS and cleartext, when the server serves files with respondWithFile() or respondWithFD(). A client can make the server free an Http2Stream while a write request that points to it is still queued on the socket; when that write completes, the code dereferences and makes a virtual call through the freed object. The only precondition is that the application serves a file with stream.respondWithFile() or stream.respondWithFD(), with default settings otherwise. This vulnerability affects Node.js 26.x (since 26.9.0) and 24.x (since 24.22.0).
Характеристики атаки
Последствия
Строка CVSS v3.0