Security mailing lists by PureSourceCode

CVE-2026-120287

MEDIUM 6.9CVSS 4.0

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

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.

Published
17 Nov 2026
Last modified
25 Nov 2026
Assigned by
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
NVD status
Deferred
Weakness
CWE-770
Also known as
EEF-CVE-2026-120287GHSA-qj4r-jh2r-rw3f
Sources
NVDJSONCVE ListJSONOSV EEF-CVE-2026-120287JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) CVSS 4.0 MEDIUM 6.9 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVE List EEF CVSS 4.0 MEDIUM 6.9 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
CVE List CISA-ADP SSVC Exploitation: none; Automatable: yes; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://repo.hex.pm plug
cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*
>= 1.13.0, < 1.20.4 1.20.4
CVE List https://github.com elixir-plug/plug
cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*
>= e06acbd3d381931f23cbde7d763136c9ccb091ac
OSV Hex plug >= 1.13.0, < 1.20.4 1.20.4

References

History

  • 25 Nov 2026 20:32 UTC · CVE List: first stored (published 17 Nov 2026)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 Nov 2026)
  • 25 Nov 2026 20:10 UTC · NVD: first stored (published 17 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.