cve.bz

CVE-2026-5038 expressjs multer: Incomplete Cleanup

7.5 highEPSS 0.4%Fix available

High (7.5) in expressjs multer. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in multer 2.2.0, 3.0.0-alpha.2.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-06-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-459 Incomplete Cleanup
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-5038 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5038?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5038?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5038 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
multerfrom 2.0.0-alpha.1 before 2.2.0
multerfrom 3.0.0-alpha.1 before 3.0.0-alpha.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3p4h-7m6x-2hcmnpmmulter>=2.0.0-alpha.1 <2.2.02.2.0
GHSA-3p4h-7m6x-2hcmnpmmulter>=3.0.0-alpha.1 <3.0.0-alpha.23.0.0-alpha.2

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important denial of service vulnerability in `multer` when configured to use `diskStorage`. An attacker can exploit this flaw by initiating and then aborting or sending malformed multipart uploads, leading to the accumulation of orphaned partial files and eventual disk space exhaustion on affected Red Hat products that utilize `multer` for file handling.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.1ansible-automation-platform/automation-portal:1790254963Fixed 2026-09-28RHSA-2026:72712
Red Hat Ansible Automation Platform 2.2ansible-automation-platform/bootc-automation-portal-rhel9:1790657374Fixed 2026-09-29RHSA-2026:73404
Red Hat Developer Hub 1.10rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend:1785332487Fixed 2026-07-29RHSA-2026:48126
Red Hat Developer Hub 1.10rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend:1785332825Fixed 2026-07-29RHSA-2026:48126
Red Hat Developer Hub 1.10rhdh/rhdh-hub-rhel9:1785411652Fixed 2026-08-03RHSA-2026:49642
Red Hat Developer Hub 1.9rhdh/rhdh-hub-rhel9:1785972843Fixed 2026-08-10RHSA-2026:52768
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Affected
Red Hat Enterprise Linux 10fido-device-onboardNot affected
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected
Red Hat Trusted Profile Analyzerrhtpa/rhtpa-trustification-service-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5038.

References

Check your stackJSON