# CVE-2026-5038: multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads

- Severity: Medium 5.3 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 35% of CVEs (2026-11-30)
- Published: 2026-06-15T14:23:24.230Z
- Modified: 2026-06-17T18:26:29.614Z
- Also known as: GHSA-3p4h-7m6x-2hcm
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## Description

Impact: multer versions 2.0.0-alpha.1 through 2.1.1 and 3.0.0-alpha.1 are vulnerable to a Denial of Service when using diskStorage. Aborted or malformed multipart uploads leave orphaned partial files on disk because the Readable.pipe() call does not propagate the stream destroy signal to 
the underlying fs.WriteStream. An attacker can exhaust disk space by triggering many aborted uploads, with no application bug required.

Patches: Users should upgrade to multer 2.2.0 (2.x line) or 3.0.0-alpha.2 (3.x prerelease). Both versions track in-flight write streams and clean them up on the abort path.

Workarounds: None.

(As written by CVE List.)

## Affected

- multer multer: from 2.0.0-alpha.1 before 2.2.0; from 3.0.0-alpha.1 before 3.0.0-alpha.2 (not affected: 2.2.0; 3.0.0-alpha.2)
- multer (npm): from 2.0.0-alpha.1 before 2.2.0; from 3.0.0-alpha.1 before 3.0.0-alpha.2
- expressjs multer: from 2.0.0 before 2.2.0; 3.0.0

## Every score

- openjs: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/expressjs/multer/security/advisories/GHSA-3p4h-7m6x-2hcm> (vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5038> (advisory)
- <https://github.com/expressjs/multer> (package)

## Sources

- CVE List: [CVE-2026-5038](https://www.cve.org/CVERecord?id=CVE-2026-5038), CVE Terms of Use, modified 2026-06-15
- GitHub Advisory Database: [GHSA-3p4h-7m6x-2hcm](https://github.com/advisories/GHSA-3p4h-7m6x-2hcm), CC-BY-4.0, modified 2026-06-17
- NVD: [CVE-2026-5038](https://nvd.nist.gov/vuln/detail/CVE-2026-5038), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-5038 · Whole record: https://cve.day/CVE-2026-5038.json · Rebuilt by cve.day 2026-11-25T22:59:24.641Z
