Skip to content
OpenAdvisories
High · 7.5 CVE-2025-47935 EUVD-2025-15797GHSA-44fp-w29j-9vj5

Multer vulnerable to Denial of Service via memory leaks from unclosed streams

Published May 19, 2025 · Updated May 27, 2025 · Assigned by GitHub_M

Description

Multer is a node.js middleware for handling `multipart/form-data`. Versions prior to 2.0.0 are vulnerable to a resource exhaustion and memory leak issue due to improper stream handling. When the HTTP request stream emits an error, the internal `busboy` stream is not closed, violating Node.js stream safety guidance. This leads to unclosed streams accumulating over time, consuming memory and file descriptors. Under sustained or repeated failure conditions, this can result in denial of service, requiring manual server restarts to recover. All users of Multer handling file uploads are potentially impacted. Users should upgrade to 2.0.0 to receive a patch. No known workarounds are available.

Affected products

VendorProductAffectedFixed
expressjs multer < 2.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling grafana-image-renderer 3.12.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm multer < 2.0.0 2.0.0 GHSA-44fp-w29j-9vj5

Advisories 1

References