CVE-2026-54892

Plug: quadratic-time decoding of nested query/body parameters enables denial of service

HIGH
8.7
CVSS Score
Published: June 23, 2026 at 12:31 PM UTC
Updated: October 25, 2026 at 11:10 PM UTC
1 product affected across 1 vendorPlug

Using plug by elixir-plug?

Get instant alerts when new vulnerabilities affect plug - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.7
Exploit prediction
EPSS 0.9%
SSVC
PoC

Description

Inefficient algorithmic complexity in Plug's nested-parameter decoder allows an unauthenticated remote attacker to cause denial of service. Plug.Conn.Query.decode/4 (and Plug.Conn.Query.decode_each/2) parse query strings and application/x-www-form-urlencoded request bodies. When a key contains many bracketed segments such as a[a][a][a]=1, the decoder walks the brackets and, for each of the N levels, performs a map operation keyed on an ever-growing binary prefix of the key, hashing the full byte range at each step. The total decode cost is therefore quadratic in the number of nesting levels. With the default Plug.Parsers.URLENCODED body limit of 1,000,000 bytes, a single request can carry roughly 333,000 nesting levels and saturate a BEAM scheduler for minutes. A small number of concurrent requests can saturate all schedulers and render a Plug-based server unresponsive. No authentication or knowledge of application routes is required. This vulnerability is associated with program files lib/plug/conn/query.ex and program routines Plug.Conn.Query.decode/4, Plug.Conn.Query.decode_each/2, Plug.Conn.Query.split_keys/6, Plug.Conn.Query.insert_keys/3, and Plug.Conn.Query.finalize_pointer/2. This issue affects plug from 1.15.0 before 1.15.5, 1.16.4, 1.17.2, 1.18.3, and 1.19.3.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions1.15.01.16.01.17.01.18.01.19.0712b875d3442c765d8d37e546ffd5ad9f8afcc55
Affected range stops below 1.15.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.16.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.17.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.18.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.19.3, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.7HIGHEEF
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-407

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card