Plug: quadratic-time decoding of nested query/body parameters enables denial of service
CVE-2026-54892Published 23 Jun 2026, 12:31 UTC
Real-world risk
3.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.7
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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, from 1.16.0 before 1.16.4, from 1.17.0 before 1.17.2, from 1.18.0 before 1.18.3, and from 1.19.0 before 1.19.3.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| plugNiche | >= 1.15.0, < 1.15.5; >= 1.16.0, < 1.16.4; >= 1.17.0, < 1.17.2; >= 1.18.0, < 1.18.3; >= 1.19.0, < 1.19.3 | 1.15.5, 1.16.4, 1.17.2, 1.18.3, 1.19.3 |
What to do
Update to a fixed version: 1.15.5, 1.16.4, 1.17.2, 1.18.3, 1.19.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 1.1% chance of exploitation in 30 days (percentile 67), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T3: Public proof of concept0.950
- 10 × impact 0.4 × prerequisites 1 × threat 0.953.800
- Rounded to one decimal between 0.1 and 103.8
Exploitation and evidence timeline
- 23 Jun 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 3.8 (cvss fallback)
Weakness
CWE-407
References
- https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxfexploit, related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-54892.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-54892related
- https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55related
- https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadbpatch
- https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0epatch
- https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107patch
- https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951patch
- https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145patch
- https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bdpatch
- CVE-2026-54892 on CVE.org