CVE-2026-8468: Unbounded buffer accumulation in multipart header parsing causes denial of service in plug

Published May 14, 2026
·
Updated

Summary

An Allocation of Resources Without Limits or Throttling vulnerability in Plug.Conn.readpartheaders/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.readpartheaders/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 readpartbody has an explicit bytesize(acc) > length guard that stops accumulation once a limit is reached. No such guard exists in readpartheaders.

Impact

This is a denial-of-service vulnerability. Any application using Plug.Parsers with the :multipart parser, or calling Plug.Conn.readpartheaders/2 directly, is affected. An unauthenticated remote attacker can trigger the issue by sending crafted HTTP requests with no special privileges.

References

Intro Commit: https://github.com/elixir-plug/plug/commit/c52b2f32c90bccd718202bafccb5f95594e30183 Patch Commit: https://github.com/elixir-plug/plug/commit/d878b42efea9f12b243dc3e362a2ed048a798203

Other sources

Allocation of Resources Without Limits or Throttling vulnerability in plugproject plug allows denial of service via unbounded buffer accumulation in multipart header parsing.

'Elixir.Plug.Conn':readpartheaders/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 readpartbody has an explicit bytesize(acc) > length guard that stops accumulation once a limit is reached. No such guard exists in readpartheaders. An unauthenticated remote attacker can exhaust server memory by sending a crafted multipart/form-data request, causing a denial of service.

This issue affects plug from 1.4.0 before 1.15.4, 1.16.3, 1.17.1, 1.18.2, and 1.19.2.

— NVD

Affected Software

6 affected componentsFixes available
hex/plug>=1.4.0<1.15.4, =1.16.3, =1.17.1, =1.18.2, =1.19.2
erlang/plug>=1.19.0<1.19.2
1.19.2
erlang/plug>=1.18.0<1.18.2
1.18.2
erlang/plug>=1.17.0<1.17.1
1.17.1
erlang/plug>=1.16.0<1.16.3
1.16.3
erlang/plug>=1.4.0<1.15.4
1.15.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade erlang/plug to a version that resolves this vulnerability.

    Fixed in 1.19.2
  2. Upgrade

    Upgrade erlang/plug to a version that resolves this vulnerability.

    Fixed in 1.18.2
  3. Upgrade

    Upgrade erlang/plug to a version that resolves this vulnerability.

    Fixed in 1.17.1
  4. Upgrade

    Upgrade erlang/plug to a version that resolves this vulnerability.

    Fixed in 1.16.3
  5. Upgrade

    Upgrade erlang/plug to a version that resolves this vulnerability.

    Fixed in 1.15.4
  6. Upgrade

    Upgrade plug to a version that resolves this vulnerability.

    Fixed in 1.15.4
  7. Upgrade

    Upgrade plug to a version that resolves this vulnerability.

    Fixed in 1.16.3
  8. Upgrade

    Upgrade plug to a version that resolves this vulnerability.

    Fixed in 1.17.1
  9. Upgrade

    Upgrade plug to a version that resolves this vulnerability.

    Fixed in 1.18.2
  10. Upgrade

    Upgrade plug to a version that resolves this vulnerability.

    Fixed in 1.19.2

Event History

May 14, 2026
CVE Published
via MITRE·10:29 AM
Data Sourced
via MITRE·10:29 AM
DescriptionWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
May 20, 2026
Advisory Published
via GitHub·03:35 PM
Data Sourced
via GitHub·03:35 PM
DescriptionWeaknessAffected Software
Jun 29, 58424
Event
via FIRST·08:16 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-8468?

CVE-2026-8468 is classified as a denial of service vulnerability due to unbounded buffer accumulation.

2

How do I fix CVE-2026-8468?

To mitigate CVE-2026-8468, ensure you update to a version of the plug that is not affected, specifically versions outside the specified vulnerable ranges.

3

Which versions of plug are affected by CVE-2026-8468?

CVE-2026-8468 affects plug versions between 1.4.0 and 1.15.4, 1.16.0 and 1.16.3, 1.17.0 and 1.17.1, 1.18.0 and 1.18.2, and 1.19.0 and 1.19.2.

4

What causes CVE-2026-8468?

CVE-2026-8468 is caused by unbounded buffer accumulation during multipart header parsing in the plug software.

5

What is the impact of CVE-2026-8468?

The impact of CVE-2026-8468 is a denial of service, potentially making the affected application unresponsive.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203