CVE-2026-56814
Plug: multipart :length limit is not charged for part headers, enabling unbounded temp-file creation (denial of service)
Mitigation
- Upgrade plug to 1.20.3 or later.
Who should check
- Anyone running elixir-plug plug >= 1.4.0-rc.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3
- Anyone running elixir-plug plug >= c52b2f32c90bccd718202bafccb5f95594e30183, < *
Vulnerability facts
- Affected
- elixir-plug plug >= 1.4.0-rc.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3; elixir-plug plug >= c52b2f32c90bccd718202bafccb5f95594e30183, < *
- Fixed in
- elixir-plug plug 1.16.6, elixir-plug plug 1.17.4, elixir-plug plug 1.18.5, elixir-plug plug 1.19.5, elixir-plug plug 1.20.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 1.08% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-770
- Modified
Description
Plug.Parsers.MULTIPART, the multipart request-body parser used to handle file uploads and multipart forms, does not enforce its :length budget against all consumed resources, allowing an unauthenticated remote attacker to cause denial of service. The parser charges the :length limit only for part body bytes; part header bytes are never counted, and a part with an empty body costs zero. Because every part whose Content-Disposition carries a non-empty filename creates a fresh temporary file (via Plug.Upload) and retains a Plug.Upload struct for the duration of the request, an attacker can send a single request composed of many empty-body file parts. Such a request stays well under the configured :length limit (8,000,000 bytes by default) while creating one temporary file per part, leading to inode and disk exhaustion and unbounded memory growth. Any application using Plug.Parsers with the :multipart parser is affected, and no authentication is required, only reachability of a multipart endpoint over HTTP. This vulnerability is associated with program files lib/plug/parsers/multipart.ex and program routines Plug.Parsers.MULTIPART.parse_multipart/2, Plug.Parsers.MULTIPART.parse_multipart_headers/5, Plug.Parsers.MULTIPART.parse_multipart_body/4, and Plug.Parsers.MULTIPART.parse_multipart_file/4. This issue affects plug: from 1.4.0-rc.0 before 1.16.6, from 1.17.0 before 1.17.4, from 1.18.0 before 1.18.5, from 1.19.0 before 1.19.5, and from 1.20.0 before 1.20.3.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| elixir-plug plug | >= 1.4.0-rc.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3 | — | cvelist |
| elixir-plug plug | >= c52b2f32c90bccd718202bafccb5f95594e30183, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-56814. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-56814.md Affected: elixir-plug plug >= 1.4.0-rc.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3; elixir-plug plug >= c52b2f32c90bccd718202bafccb5f95594e30183, < * Fixed in: elixir-plug plug 1.16.6, elixir-plug plug 1.17.4, elixir-plug plug 1.18.5, elixir-plug plug 1.19.5, elixir-plug plug 1.20.3 Steps: 1. Search this machine and project for elixir-plug plug: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/elixir-plug/plug/commit/c52b2f32c90bccd718202bafccb5f95594e30183
- https://github.com/elixir-plug/plug/commit/0ee8afcc61466dc5f7a8f048d0632c899165b81f
- https://github.com/elixir-plug/plug/commit/56edca2ce35fe5589cd581644d8a4493fa5f484e
- https://github.com/elixir-plug/plug/commit/981597d3a4271ede64373c7a731702a42c500dd6
- https://github.com/elixir-plug/plug/commit/cae36053350e5215a4e0ca33cd130af9c5fc6364
- https://github.com/elixir-plug/plug/commit/df97d3f17f808a9916a7700a701fb85314559d56
- https://github.com/elixir-plug/plug/commit/f7effaed811c00b5f5bf817936bfd9c5df27b7dc
FAQ
Is CVE-2026-56814 being exploited?
There is no confirmed exploitation: CVE-2026-56814 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-56814?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-56814?
elixir-plug plug >= 1.4.0-rc.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3; elixir-plug plug >= c52b2f32c90bccd718202bafccb5f95594e30183, < *.
Is there a fix for CVE-2026-56814?
Yes. Fixed in elixir-plug plug 1.16.6, elixir-plug plug 1.17.4, elixir-plug plug 1.18.5, elixir-plug plug 1.19.5, elixir-plug plug 1.20.3. Upgrade plug to 1.20.3 or later.
How do I check if I'm affected by CVE-2026-56814?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.