CVE-2026-56814
Plug: multipart :length limit is not charged for part headers, enabling unbounded temp-file creation (denial of service)
Check your servers for CVE-2026-56814
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-56814 affects plug, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.72%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Jul 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-770 Allocation of Resources Without Limits or Throttling
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
plug
package
plug |
affected from 1.4.0-rc.0, before 1.16.6 affected from 1.17.0, before 1.17.4 affected from 1.18.0, before 1.18.5 affected from 1.19.0, before 1.19.5 affected from 1.20.0, before 1.20.3
Other versions: unaffected
|
|
plug
package
elixir-plug/plug |
affected c52b2f32c90bccd718202bafccb5f95594e30183 and later (unaffected from 0ee8afcc61466dc5f7a8f048d0632c899165b81f, unaffected from 56edca2ce35fe5589cd581644d8a4493fa5f484e, unaffected from 981597d3a4271ede64373c7a731702a42c500dd6, unaffected from cae36053350e5215a4e0ca33cd130af9c5fc6364, unaffected from df97d3f17f808a9916a7700a701fb85314559d56, unaffected from f7effaed811c00b5f5bf817936bfd9c5df27b7dc)
Other versions: unaffected
|
Is my server affected?
Find the installed version of plug and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i plug
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-56814 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-56814RHEL, Rocky, Alma, Fedora
rpm -q plug
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-56814Alpine
apk list --installed | grep -i plugWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-56814
trivy image --scanners vuln IMAGE | grep CVE-2026-56814
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/elixir-plug/plug/security/advisories/GHSA-95qv-c9g9-rm63 github.com · vendor advisory, related
Patches and release notes
- Fix commit 0ee8afc in elixir-plug/plug github.com · patch
- Fix commit 56edca2 in elixir-plug/plug github.com · patch
- Fix commit 981597d in elixir-plug/plug github.com · patch
- Fix commit cae3605 in elixir-plug/plug github.com · patch
- Fix commit df97d3f in elixir-plug/plug github.com · patch
- Fix commit f7effae in elixir-plug/plug github.com · patch
Other references
- EEF CNA record for CVE-2026-56814 cna.erlef.org · related
- OSV record EEF-CVE-2026-56814 osv.dev · related
- Introducing commit c52b2f3 in elixir-plug/plug github.com · related
Source: the record CVE-2026-56814 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse