CVE-2026-8468 — plug
Fix: elixir-plug/plug@2cb7958CVE-2026-8468 is a CWE-770 vulnerability in plug. A fix is available for plug — see the affected versions and patch details below.
Unbounded buffer accumulation in multipart header parsing causes denial of service in plug
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-8468.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
plug💧plug💧plug💧plug💧plugReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Hex packages — download data is not available via public APIs for these ecosystems.
Description
Summary
An Allocation of Resources Without Limits or Throttling vulnerability in Plug.Conn.read_part_headers/2 allows an unauthenticated attacker to exhaust server memory by sending a crafted multipart/form-data request, causing a denial of service.
Details
Plug.Conn.read_part_headers/2 in lib/plug/conn.ex does not obey its :length parameter. There is no upper bound on the size of the accumulated buffer. By contrast, the sibling function read_part_body has an explicit byte_size(acc) > length guard that stops accumulation once a limit is reached. No such guard exists in read_part_headers.
Impact
This is a denial-of-service vulnerability. Any application using Plug.Parsers with the :multipart parser, or calling Plug.Conn.read_part_headers/2 directly, is affected. An unauthenticated remote attacker can trigger the issue by sending crafted HTTP requests with no special privileges.
References
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💧Hex | plug | ≥ 1.4.0&&< 1.15.4 | 1.15.4mix deps.update plug |
| 💧Hex | plug | ≥ 1.16.0&&< 1.16.3 | 1.16.3mix deps.update plug |
| 💧Hex | plug | ≥ 1.17.0&&< 1.17.1 | 1.17.1mix deps.update plug |
| 💧Hex | plug | ≥ 1.18.0&&< 1.18.2 | 1.18.2mix deps.update plug |
| 💧Hex | plug | ≥ 1.19.0&&< 1.19.2 | 1.19.2mix deps.update plug |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for plug, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update plug to 1.15.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-8468 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2026-8468 in your dependencies?
Find it across Hex, including transitive dependencies.