{"id":"CVE-2026-5038","published":"2026-06-15T14:23:24Z","modified":"2026-06-15T16:07:45Z","title":"multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads","vendor":"multer","product":"multer","tier":"tail","description":{"text":"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 \nthe underlying fs.WriteStream. An attacker can exhaust disk space by triggering many aborted uploads, with no application bug required.\n\nPatches: 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.\n\nWorkarounds: None.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00367,"percentile":0.31324,"provenance":"source"},"cwes":[{"id":"CWE-459","name":"Incomplete Cleanup"}],"references":[{"url":"https://github.com/expressjs/multer/security/advisories/GHSA-3p4h-7m6x-2hcm","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":6.26},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"multer","affectedVersions":[{"vendor":"multer","product":"multer","versions":[">= 2.0.0-alpha.1, < 2.2.0",">= 3.0.0-alpha.1, < 3.0.0-alpha.2"]}],"fixedVersions":[{"vendor":"multer","product":"multer","versions":["2.2.0","3.0.0-alpha.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-15T16:07:25.876003Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"multer","vulnerableRanges":[">=2.0.0-alpha.1, <2.2.0",">=3.0.0-alpha.1, <3.0.0-alpha.2"],"patched":["2.2.0","3.0.0-alpha.2"],"from":["GHSA-3p4h-7m6x-2hcm"],"provenance":"source"}],"summary":{"text":"The multer Node.js middleware for handling multipart uploads contains a flaw in its diskStorage handling, where aborted or malformed multipart uploads leave orphaned partial files on disk because stream destruction is not propagated to the underlying write stream. An unauthenticated remote attacker with network access can exhaust disk space by triggering many aborted uploads, which requires no application bug and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:59Z"},"euvd":{"id":"EUVD-2026-36728","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-3520","published":"2026-03-04","fixed":"2.1.1","kev":false,"link":{"from":"CVE-2026-3520","to":"CVE-2026-5038","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:multer","fromFixed":"2.1.1","toFixed":"2.2.0","daysApart":103}]}},{"cve":"CVE-2026-82333","published":"2026-08-28","fixed":"2.3.0","kev":false},{"cve":"CVE-2026-88932","published":"2026-09-14","fixed":"2.4.0","kev":false},{"cve":"CVE-2026-113872","published":"2026-10-22","fixed":"2.5.0","kev":false},{"cve":"CVE-2026-5038","published":"2026-06-15","fixed":"3.0.0-alpha.2","kev":false},{"cve":"CVE-2026-5079","published":"2026-06-15","fixed":"3.0.0-alpha.2","kev":false}],"package":"npm:multer"}}