CVE-2026-54892
published high CVSS 4.0 · 8.7Plug: quadratic-time decoding of nested query/body parameters enables denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| elixir-plug | — | plug1.15.0 to < 1.15.5 · 1.16.0 to < 1.16.4 · 1.17.0 to < 1.17.2 · 1.18.0 to < 1.18.3 · 1.19.0 to < 1.19.3 · Other versions: unaffected | Affected | Not stated | EEF |
| elixir-plug | — | elixir-plug/plugplug · 712b875d3442c765d8d37e546ffd5ad9f8afcc55 and later (affected · git); changes: unaffected at 9c5d37c440eaae92869eed7c014c47266744fadb, unaffected at a61124aa625d819a218fb07f90afbac8aa85eb0e, unaffected at b4aa8a0665ce2726a6d5af44467fb4f59595b107, unaffected at c317d08fdcf96e17931f7419275b2b8c4bf3e951, unaffected at d4e5568392a4b29e545b91e12e87d6098f976145, unaffected at d737eb236f17e31a36290e39f9ef3cd86a1343bd · Other versions: unaffected | Version-specific | Not stated | EEF |
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, 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| elixir-plug | plug | 1.15.0 to < 1.15.5 (affected · semver)1.16.0 to < 1.16.4 (affected · semver)1.17.0 to < 1.17.2 (affected · semver)1.18.0 to < 1.18.3 (affected · semver)1.19.0 to < 1.19.3 (affected · semver)Default: unaffected | EEF · cna |
| elixir-plug | plug | 712b875d3442c765d8d37e546ffd5ad9f8afcc55 and later (affected · git); changes: unaffected at 9c5d37c440eaae92869eed7c014c47266744fadb, unaffected at a61124aa625d819a218fb07f90afbac8aa85eb0e, unaffected at b4aa8a0665ce2726a6d5af44467fb4f59595b107, unaffected at c317d08fdcf96e17931f7419275b2b8c4bf3e951, unaffected at d4e5568392a4b29e545b91e12e87d6098f976145, unaffected at d737eb236f17e31a36290e39f9ef3cd86a1343bdDefault: unaffected | EEF · cna |
Weaknesses
1- CWE-407 CWE-407 Inefficient Algorithmic Complexity
References
10- EEF CNA record for CVE-2026-54892 https://cna.erlef.org/cves/CVE-2026-54892.html
- Introducing commit 712b875 in elixir-plug/plug https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55
- Fix commit 9c5d37c in elixir-plug/plug https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb
- Fix commit a61124a in elixir-plug/plug https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e
- Fix commit b4aa8a0 in elixir-plug/plug https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107
- Fix commit c317d08 in elixir-plug/plug https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951
- Fix commit d4e5568 in elixir-plug/plug https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145
- Fix commit d737eb2 in elixir-plug/plug https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd
- Plug: quadratic-time decoding of nested query/body parameters enables denial of service https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf
- OSV record EEF-CVE-2026-54892 https://osv.dev/vulnerability/EEF-CVE-2026-54892
Provider assertions
2EEF · cna
Plug: quadratic-time decoding of nested query/body parameters enables denial of service
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b0cba4f5189a8421f36e60842584f254ae808e6e86b4d15e7668cd339d6a1c8c
- Ingested
- 24 Nov 2026, 04:23:40 UTC
- Source record
- Official CVE record