Skip to content
FlawDB
Sign in

CVE-2026-120287

MEDIUM 6.9EPSS 50%

Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART

Mitigation

  • Upgrade plug to 1.20.4 or later.
  • Vendor workaround: Limit the request body size in a reverse proxy in front of the application, for example with client_max_body_size in nginx. The proxy rejects a larger body before it reaches the parser. This limits the memory that one request can hold but does not remove the multiplication: a body below the proxy limit still passes the :length limit.

Who should check

  • Anyone running elixir-plug plug >= 1.13.0, < 1.20.4
  • Anyone running elixir-plug plug >= e06acbd3d381931f23cbde7d763136c9ccb091ac, < *

Vulnerability facts

Affected
elixir-plug plug >= 1.13.0, < 1.20.4; elixir-plug plug >= e06acbd3d381931f23cbde7d763136c9ccb091ac, < *
Fixed in
elixir-plug plug 1.20.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: Low
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.73% chance of exploitation in 30 days (percentile 50, 2026-11-28)
CWE
CWE-770
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
elixir-plug plug>= 1.13.0, < 1.20.4—cvelist
elixir-plug plug>= e06acbd3d381931f23cbde7d763136c9ccb091ac, < *—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-120287. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-120287.md
Affected: elixir-plug plug >= 1.13.0, < 1.20.4; elixir-plug plug >= e06acbd3d381931f23cbde7d763136c9ccb091ac, < *
Fixed in: elixir-plug plug 1.20.4

Steps:
1. Search this machine and project for elixir-plug plug: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-120287 being exploited?

There is no confirmed exploitation: CVE-2026-120287 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-28).

How serious is CVE-2026-120287?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-120287?

elixir-plug plug >= 1.13.0, < 1.20.4; elixir-plug plug >= e06acbd3d381931f23cbde7d763136c9ccb091ac, < *.

Is there a fix for CVE-2026-120287?

Yes. Fixed in elixir-plug plug 1.20.4. Upgrade plug to 1.20.4 or later. Vendor workaround: Limit the request body size in a reverse proxy in front of the application, for example with client_max_body_size in nginx. The proxy rejects a larger body before it reaches the parser. This limits the memory that one request can hold but does not remove the multiplication: a body below the proxy limit still passes the :length limit.

How do I check if I'm affected by CVE-2026-120287?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors