# CVE-2026-120287: Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-17T16:53:38.533Z
- Modified: 2026-11-25T17:23:02.805Z
- Also known as: EEF-CVE-2026-120287, GHSA-qj4r-jh2r-rw3f
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- plug: from 1.13.0 before 1.20.4
- elixir-plug/plug: from e06acbd3d381931f23cbde7d763136c9ccb091ac before *
- plug (Hex): from 1.13.0 before 1.20.4
- https://github.com/elixir-plug/plug: from e06acbd3d381931f23cbde7d763136c9ccb091ac before 3d3fb645323643935c6c94863c1b3edfd62e2828; before 497913f2a6d744d693e98e96c5b9c6d88c265695

## Every score

- EEF: CVSS:4.0 6.9 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-120287.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-120287> (related)
- <https://github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac> (related, web)
- <https://github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828> (fix, patch)
- <https://github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695> (fix, patch)
- <https://hex.pm/packages/plug> (package)

## Sources

- CVE List: [CVE-2026-120287](https://www.cve.org/CVERecord?id=CVE-2026-120287), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-120287](https://osv.dev/vulnerability/EEF-CVE-2026-120287), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-120287](https://nvd.nist.gov/vuln/detail/CVE-2026-120287), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-120287 · Whole record: https://cve.day/CVE-2026-120287.json · Rebuilt by cve.day 2026-11-25T22:59:51.003Z
