CVE-2026-120287: Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART
Published 2026-11-17 · Updated 2026-11-25 · Also known as EEF-CVE-2026-120287, GHSA-qj4r-jh2r-rw3f
Summary
An allocation of resources without limits vulnerability exists in Plug.Parsers.MULTIPART in elixir-plug because framing bytes and certain empty headers are not charged against the :length limit. Engineering teams maintaining applications using elixir-plug with multipart parsing enabled should upgrade to the fixed version.
Who is affected
Unauthenticated remote attackers can send specially crafted multipart request bodies that bypass the configured :length limit, causing the parser process to consume memory multiple times the size of the request. Deployments accepting multipart requests from unauthenticated clients are at risk of memory exhaustion and denial of service when concurrent malicious requests are processed.
Exploitability
The vulnerability is exploitable remotely over the network with low attack complexity and no privileges or user interaction required, resulting in low availability impact. The EPSS score is 0.005 (percentile 0.448) and it is not listed in CISA KEV.
Remediation
- Upgrade the Hex plug package to version 1.20.4 or later.
- Apply request body size limits in a front-end reverse proxy such as nginx, noting this acts as a partial mitigation but does not eliminate the memory multiplication behavior.
How to check your project
- Inspect the project's dependency manager configuration (such as mix.lock) to check if the elixir-plug (plug) package version falls within the affected range of 1.13.0 up to 1.20.4.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | plug |
>= 1.13.0, < 1.20.4 | 1.20.4 | mix deps.update plug |
CVSS 4.0 vector
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 |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | None |
| Availability (vulnerable system) | Low |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Which versions of plug are vulnerable?
Plug versions from 1.13.0 up to, but not including, 1.20.4 are affected.
What causes the memory exhaustion during multipart parsing?
The parser fails to charge framing bytes like delimiters, header separators, and line endings-as well as headers lacking names and values-against the configured :length limit, causing the process accumulator to hold large states until parsing completes.
Does a reverse proxy completely fix the vulnerability?
No. While a reverse proxy can reject bodies larger than a configured limit, it only limits the memory a single request holds and does not remove the underlying memory multiplication factor.
Original advisory description
References
- ADVISORY https://github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f
- WEB https://cna.erlef.org/cves/CVE-2026-120287.html
- WEB https://github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac
- FIX https://github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828
- FIX https://github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695
- PACKAGE https://hex.pm/packages/plug
Source records: EEF-CVE-2026-120287 (OSV.dev) · EPSS by FIRST, 2026-11-26.