{"id":"CVE-2026-77037","aliases":["CVE-2026-77037","GHSA-qfvm-cv95-jqjf"],"related":[],"kind":"vulnerability","state":"published","title":"multer vulnerable to Denial of Service via file descriptor leak on aborted uploads","summary":"multer is a middleware for handling multipart/form-data in Node.js. In version 2.2.0, when a disk-backed upload is aborted or truncated before the write stream finishes, multer's disk storage engine removes the visible file but does not close the underlying write file descriptor, leaving a deleted but still open descriptor. A remote attacker able to reach an upload route using the built-in disk storage can send repeated aborted or malformed multipart uploads, each one leaking a file descriptor and retaining disk blocks until the process exits, which can exhaust resources and cause a denial of service. The issue is fixed in multer 2.3.0, which closes the destination write stream on abnormal source termination and defers cleanup until the stream has closed. Upgrade to multer 2.3.0 to remediate.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"multer is a middleware for handling multipart/form-data in Node.js. In version 2.2.0, when a disk-backed upload is aborted or truncated before the write stream finishes, multer's disk storage engine removes the visible file but does not close the underlying write file descriptor, leaving a deleted but still open descriptor. A remote attacker able to reach an upload route using the built-in disk storage can send repeated aborted or malformed multipart uploads, each one leaking a file descriptor and retaining disk blocks until the process exits, which can exhaust resources and cause a denial of service. The issue is fixed in multer 2.3.0, which closes the destination write stream on abnormal source termination and defers cleanup until the stream has closed. Upgrade to multer 2.3.0 to remediate.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA vulnerability in multer `2.2.0` allows an attacker to trigger a Denial of Service (DoS) by aborting or truncating multipart uploads. When using `diskStorage`, the destination write stream is not closed if the upload is aborted before it finishes, so each failed request leaks an open file descriptor and retains its disk blocks until the process exits. Repeated failed uploads can exhaust the available file descriptors. All applications using multer's disk storage are affected.\n\n### Patches\n\nUsers should upgrade to `2.3.0`.\n\n### Workarounds\n\nNone.","format":"markdown","source":"ghsa"}],"published":"2026-08-28T19:44:23.501Z","modified":"2026-09-08T21:45:04.619Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-459"],"affected":[{"ranges":[{"type":"semver","introduced":"2.2.0","fixed":"2.3.0","status":"affected"},{"type":"semver","version":"2.3.0","status":"unaffected"}],"vendor":"multer","product":"multer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.3.0"}],"ecosystem":"npm","package":"multer","purl":"pkg:npm/multer","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.2.0"}],"vendor":"expressjs","product":"multer","cpe":"cpe:2.3:a:expressjs:multer:2.2.0:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/expressjs/multer/security/advisories/GHSA-qfvm-cv95-jqjf","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77037","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/multer/commit/eef74440b491ef0f976f3d25895e8089ae495df0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/multer","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/multer/releases/tag/v2.3.0","tags":["web"],"sources":["ghsa"]}],"credits":["dkoazw","EmirCobanOfficial","bjohansebas","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-31T18:41:18.978Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77037","url":"https://www.cve.org/CVERecord?id=CVE-2026-77037","licence":"CVE Terms of Use","modified":"2026-08-31T18:41:28.652Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qfvm-cv95-jqjf","url":"https://github.com/advisories/GHSA-qfvm-cv95-jqjf","licence":"CC-BY-4.0","modified":"2026-09-08T21:45:04.619Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77037","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77037","licence":"Public domain","modified":"2026-09-02T14:47:21.140Z"}],"updatedAt":"2026-11-25T22:59:35.722Z","epss":{"score":0.00457,"percentile":0.41363,"date":"2026-12-01T12:00:22.000Z"}}