Description
Allocation of Resources Without Limits or Throttling vulnerability in Plug.Parsers.MULTIPART in elixir-plug plug allows an unauthenticated remote attacker to exhaust memory via a multipart request body built from parts without headers, or from header lines without a name and a value. The parser charges the :length limit only with the name and value bytes of each part header and the bytes of each part body. The part delimiter, the header separator, and the line endings cost nothing. In lib/plug/parsers/multipart.ex, Plug.Parsers.MULTIPART.parse_multipart_headers/5 keeps an entry for every part without a content-disposition header, together with its header list, until the whole body is read. A request made of such parts does not reach the limit at any size, and the parser process holds a multiple of the request size in memory until parsing completes. Any endpoint that uses Plug.Parsers with the :multipart parser is reachable. This issue affects plug: from 1.13.0 before 1.20.4.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | 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 |
| Provided by | CNA |
Weaknesses
- CWE-770 — CWE-770 Allocation of Resources Without Limits or Throttling
Affected products
| Vendor | Product | Versions |
|---|---|---|
| elixir-plug | plug | 1.13.0 to <1.20.4 [affected] |
| elixir-plug | plug | e06acbd3d381931f23cbde7d763136c9ccb091ac to <* [affected]; from 497913f2a6d744d693e98e96c5b9c6d88c265695: unaffected; from 3d3fb645323643935c6c94863c1b3edfd62e2828: unaffected |
References
- https://github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f (vendor-advisory related)
- https://cna.erlef.org/cves/CVE-2026-120287.html (related)
- https://osv.dev/vulnerability/EEF-CVE-2026-120287 (related)
- https://github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac (related)
- https://github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695 (patch)
- https://github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828 (patch)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 18 Nov 2026 08:08 UTC.