cvelo
P3 · MediumCVSS 6.9EPSS 0.6%

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

  • CVE-2026-120287
  • EUVD-2026-127132

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.

Text from the CVE.org record.

Recommendation

  • elixir-plug plug

    • If you run a version from 1.13.0 to before 1.20.4update to 1.20.4 or laterMinor version change: check the release notes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • elixir-plug plug

    Affected versionsFixed in
    from 1.13.0 to before 1.20.41.20.4

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.