CVE-2025-7338: Multer vulnerable to Denial of Service via unhandled exception from malformed request
Impact
A vulnerability in Multer versions >= 1.4.4-lts.1, < 2.0.2 allows an attacker to trigger a Denial of Service (DoS) by sending a malformed request. This request causes an unhandled exception, leading to a crash of the process.
Patches
Users should upgrade to 2.0.2
Workarounds
None
Other sources
Multer is a node.js middleware for handling multipart/form-data. A vulnerability that is present starting in version 1.4.4-lts.1 and prior to version 2.0.2 allows an attacker to trigger a Denial of Service (DoS) by sending a malformed multi-part upload request. This request causes an unhandled exception, leading to a crash of the process. Users should upgrade to version 2.0.2 to receive a patch. No known workarounds are available.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/multerto a version that resolves this vulnerability.Fixed in 2.0.2 - Upgrade
Upgrade
Multerto a version that resolves this vulnerability.Fixed in 2.0.2
Event History
Frequently Asked Questions
What is the severity of CVE-2025-7338?
CVE-2025-7338 has a high severity rating due to its potential to cause Denial of Service (DoS) attacks.
How do I fix CVE-2025-7338?
To fix CVE-2025-7338, upgrade Multer to version 2.0.2 or later.
What versions of Multer are affected by CVE-2025-7338?
CVE-2025-7338 affects Multer versions from 1.4.4-lts.1 up to, but not including, 2.0.2.
What type of attack is associated with CVE-2025-7338?
CVE-2025-7338 is associated with Denial of Service (DoS) attacks through malformed multipart upload requests.
How can attackers exploit CVE-2025-7338?
Attackers can exploit CVE-2025-7338 by sending specially crafted multipart upload requests that trigger a DoS condition.