漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
@fastify/busboy vulnerable to Denial of Service via a skipped last part that fills its stream buffer
Vulnerability Description
@fastify/busboy is a streaming parser for HTML form data, including multipart/form-data uploads, used by Fastify through @fastify/multipart. In versions from 1.0.0 before 3.2.7, when the final part of a multipart body is one the parser skips, such as a part with an invalid or missing Content-Disposition header or a part beyond a configured files, fields, or parts limit, and that part holds at least one stream buffer of data, the parser pauses the incoming write and never releases it because the closing delimiter has already been processed. The parser then emits neither a finish nor an error event, so the upload request never completes and stays pending even after the client disconnects. A single unauthenticated upload of about 67 KB is enough to leave a request hanging, and repeated requests can exhaust server resources, affecting any application that passes untrusted multipart/form-data to the parser directly or through @fastify/multipart. The issue is fixed in @fastify/busboy 3.2.7, and users should upgrade to 3.2.7 or later. There is no complete workaround, but setting Fastify's handlerTimeout option limits how long a stalled handler holds its resources.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
未加控制的资源消耗(资源穷尽)