CVE-2026-120287
published medium CVSS 4.0 · 6.9Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| elixir-plug | — | plug1.13.0 to < 1.20.4 · Other versions: unaffected | Affected | Not stated | EEF |
| elixir-plug | — | elixir-plug/plugplug · e06acbd3d381931f23cbde7d763136c9ccb091ac and later (affected · git); changes: unaffected at 3d3fb645323643935c6c94863c1b3edfd62e2828, unaffected at 497913f2a6d744d693e98e96c5b9c6d88c265695 · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| elixir-plug | plug | 1.13.0 to < 1.20.4 (affected · semver)Default: unaffected | EEF · cna |
| elixir-plug | plug | e06acbd3d381931f23cbde7d763136c9ccb091ac and later (affected · git); changes: unaffected at 3d3fb645323643935c6c94863c1b3edfd62e2828, unaffected at 497913f2a6d744d693e98e96c5b9c6d88c265695Default: unaffected | EEF · cna |
Weaknesses
1- CWE-770 CWE-770 Allocation of Resources Without Limits or Throttling
References
6- EEF CNA record for CVE-2026-120287 https://cna.erlef.org/cves/CVE-2026-120287.html
- Fix commit 3d3fb64 in elixir-plug/plug https://github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828
- Fix commit 497913f in elixir-plug/plug https://github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695
- Introducing commit e06acbd in elixir-plug/plug https://github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac
- Plug.Parsers.MULTIPART does not charge all consumed multipart bytes against `:length`, allowing unbounded part accumulation and memory exhaustion https://github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f
- OSV record EEF-CVE-2026-120287 https://osv.dev/vulnerability/EEF-CVE-2026-120287
Provider assertions
2EEF · cna
Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ed9d1ee0d7efff76b438c57c05336c435fd1cd2d45e23a71cc14ffcf3054f2cc
- Ingested
- 20 Nov 2026, 06:03:31 UTC
- Source record
- Official CVE record